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

Function TestNotZero

require/requirements_test.go:318–328  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

316}
317
318func TestNotZero(t *testing.T) {
319 t.Parallel()
320
321 NotZero(t, "x")
322
323 mockT := new(MockT)
324 NotZero(mockT, "")
325 if !mockT.Failed {
326 t.Error("Check should fail")
327 }
328}
329
330func TestJSONEq_EqualSONString(t *testing.T) {
331 t.Parallel()

Callers

nothing calls this directly

Calls 2

NotZeroFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected