MCPcopy
hub / github.com/stretchr/testify / TestZero

Function TestZero

assert/assertions_test.go:2553–2565  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2551}
2552
2553func TestZero(t *testing.T) {
2554 t.Parallel()
2555
2556 mockT := new(testing.T)
2557
2558 for _, test := range zeros {
2559 True(t, Zero(mockT, test, "%#v is not the %T zero value", test, test))
2560 }
2561
2562 for _, test := range nonZeros {
2563 False(t, Zero(mockT, test, "%#v is not the %T zero value", test, test))
2564 }
2565}
2566
2567func TestNotZero(t *testing.T) {
2568 t.Parallel()

Callers

nothing calls this directly

Calls 3

TrueFunction · 0.70
ZeroFunction · 0.70
FalseFunction · 0.70

Tested by

no test coverage detected