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

Function TestEmptyWrapper

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

Source from the content-addressed store, hash-verified

221}
222
223func TestEmptyWrapper(t *testing.T) {
224 require := New(t)
225 require.Empty("")
226
227 mockT := new(MockT)
228 mockRequire := New(mockT)
229 mockRequire.Empty("x")
230 if !mockT.Failed {
231 t.Error("Check should fail")
232 }
233}
234
235func TestNotEmptyWrapper(t *testing.T) {
236 require := New(t)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
EmptyMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…