Documentation
¶
Overview ¶
Package test provides test helpers.
Index ¶
- func ApproxEqual(tb testing.TB, got, want float64, tol Tolerance)
- func DeepEqual(tb testing.TB, a, b any)
- func Eq[T comparable](tb testing.TB, got, want T)
- func Err(tb testing.TB, err error)
- func ErrAs(tb testing.TB, err error, target any)
- func ExactEquals(tb testing.TB, g1, g2 geom.Geometry, opts ...geom.ExactEqualsOption)
- func False(tb testing.TB, cond bool)
- func NoErr(tb testing.TB, err error)
- func NotDeepEqual(tb testing.TB, a, b any)
- func NotExactEquals(tb testing.TB, g1, g2 geom.Geometry, opts ...geom.ExactEqualsOption)
- func True(tb testing.TB, cond bool)
- type Tolerance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApproxEqual ¶ added in v0.57.0
ApproxEqual asserts that two float64 values are approximately equal. The comparison passes if the difference is within either the relative tolerance or the absolute tolerance.
func Eq ¶ added in v0.57.0
func Eq[T comparable](tb testing.TB, got, want T)
func ExactEquals ¶ added in v0.56.0
func NotDeepEqual ¶ added in v0.56.0
func NotExactEquals ¶ added in v0.56.0
Types ¶
Click to show internal directories.
Click to hide internal directories.