MCPcopy
hub / github.com/expr-lang/expr / TestZeroWrapper

Function TestZeroWrapper

internal/testify/assert/forward_assertions_test.go:556–567  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

554}
555
556func TestZeroWrapper(t *testing.T) {
557 assert := New(t)
558 mockAssert := New(new(testing.T))
559
560 for _, test := range zeros {
561 assert.True(mockAssert.Zero(test), "Zero should return true for %v", test)
562 }
563
564 for _, test := range nonZeros {
565 assert.False(mockAssert.Zero(test), "Zero should return false for %v", test)
566 }
567}
568
569func TestNotZeroWrapper(t *testing.T) {
570 assert := New(t)

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…