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

Function TestNotZeroWrapper

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

Source from the content-addressed store, hash-verified

616}
617
618func TestNotZeroWrapper(t *testing.T) {
619 t.Parallel()
620
621 assert := New(t)
622 mockAssert := New(new(testing.T))
623
624 for _, test := range zeros {
625 assert.False(mockAssert.NotZero(test), "Zero should return true for %v", test)
626 }
627
628 for _, test := range nonZeros {
629 assert.True(mockAssert.NotZero(test), "Zero should return false for %v", test)
630 }
631}
632
633func TestJSONEqWrapper_EqualSONString(t *testing.T) {
634 t.Parallel()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.70
FalseMethod · 0.45
NotZeroMethod · 0.45
TrueMethod · 0.45

Tested by

no test coverage detected