Documentation
¶
Overview ¶
Package assert holds dependency-free test assertion helpers usable from any package's tests. It deliberately imports no flate packages so that even internal (package X) tests of packages that internal/testutil depends on — manifest, store — can use it without an import cycle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶
Diff fails t (non-fatally) with a structural diff when got != want. Uses go-cmp; intended for maps, slices, and structs with exported fields (cmp panics on unexported fields without options) — keep manual comparison for types with unexported state.
func Equal ¶
func Equal[T comparable](t testing.TB, got, want T)
Equal fails t (non-fatally) when got != want, reporting both.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.