package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Aug 12, 2022
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Equal(t *testing.T, expected, actual any, msg ...any)
-
func False(t *testing.T, actual bool, msg ...any)
-
func NotEqual(t *testing.T, expected, actual any, msg ...any)
-
func True(t *testing.T, actual bool, msg ...any)
Assert that two objects are equal. Log and terminate when failed.
Example:
Equal(t, "DD", Repeat("D", 2))
Equal(t, "DD", Repeat("D", 2), "%s expected Type=%v, Got=%v", "Test", "DD", Repeat("D", 2))
Assert that given object is false. Log and terminate when failed.
Example:
False(t, CanRepeat())
False(t, CanRepeat(), "%s expected Type=%v, Got=%v", "Test", true, CanRepeat())
Assert that two objects are not equal. Log and terminate when failed.
Example:
NotEqual(t, "DD", Repeat("D", 2))
NotEqual(t, "DD", Repeat("D", 2), "%s expected Type=%v, Got=%v", "Test", "DD", Repeat("D", 2))
Assert that given object is true. Log and terminate when failed.
Example:
True(t, CanRepeat())
True(t, CanRepeat(), "%s expected Type=%v, Got=%v", "Test", true, CanRepeat())
Source Files
¶
Click to show internal directories.
Click to hide internal directories.