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

Function TestNotEmptyWrapper

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

Source from the content-addressed store, hash-verified

233}
234
235func TestNotEmptyWrapper(t *testing.T) {
236 require := New(t)
237 require.NotEmpty("x")
238
239 mockT := new(MockT)
240 mockRequire := New(mockT)
241 mockRequire.NotEmpty("")
242 if !mockT.Failed {
243 t.Error("Check should fail")
244 }
245}
246
247func TestWithinDurationWrapper(t *testing.T) {
248 require := New(t)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
NotEmptyMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…