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

Function TestNotZero

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

Source from the content-addressed store, hash-verified

2565}
2566
2567func TestNotZero(t *testing.T) {
2568 t.Parallel()
2569
2570 mockT := new(testing.T)
2571
2572 for _, test := range zeros {
2573 False(t, NotZero(mockT, test, "%#v is not the %T zero value", test, test))
2574 }
2575
2576 for _, test := range nonZeros {
2577 True(t, NotZero(mockT, test, "%#v is not the %T zero value", test, test))
2578 }
2579}
2580
2581func TestFileExists(t *testing.T) {
2582 t.Parallel()

Callers

nothing calls this directly

Calls 3

FalseFunction · 0.70
NotZeroFunction · 0.70
TrueFunction · 0.70

Tested by

no test coverage detected