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

Function TestZeroWrapper

assert/forward_assertions_test.go:603–616  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

601}
602
603func TestZeroWrapper(t *testing.T) {
604 t.Parallel()
605
606 assert := New(t)
607 mockAssert := New(new(testing.T))
608
609 for _, test := range zeros {
610 assert.True(mockAssert.Zero(test), "Zero should return true for %v", test)
611 }
612
613 for _, test := range nonZeros {
614 assert.False(mockAssert.Zero(test), "Zero should return false for %v", test)
615 }
616}
617
618func TestNotZeroWrapper(t *testing.T) {
619 t.Parallel()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.70
TrueMethod · 0.45
ZeroMethod · 0.45
FalseMethod · 0.45

Tested by

no test coverage detected