MCPcopy Create free account
hub / github.com/expr-lang/expr / TestZeroWrapper

Function TestZeroWrapper

internal/testify/require/forward_requirements_test.go:274–284  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

272}
273
274func TestZeroWrapper(t *testing.T) {
275 require := New(t)
276 require.Zero(0)
277
278 mockT := new(MockT)
279 mockRequire := New(mockT)
280 mockRequire.Zero(1)
281 if !mockT.Failed {
282 t.Error("Check should fail")
283 }
284}
285
286func TestNotZeroWrapper(t *testing.T) {
287 require := New(t)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
ZeroMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…