package
Version:
v0.7.0
Opens a new window with list of versions in this module.
Published: Jan 5, 2026
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package verify provides utility functions for tests.
-
func AlmostEquals(t *testing.T, exp, act float64)
-
func Assert(t *testing.T, condition bool, msg string, v ...interface{})
-
func Equals(t *testing.T, exp, act any)
-
func NotNil(t *testing.T, act interface{}, msg string)
-
func Ok(t *testing.T, err error)
Equals fails the test if exp is not almost equal to act.
Assert fails the test if the condition is false.
Equals fails the test if exp is not equal to act.
NotNil fails if act is nil
Ok fails the test if an err is not nil.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.