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

Function TestEmpty

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

Source from the content-addressed store, hash-verified

231}
232
233func TestEmpty(t *testing.T) {
234
235 Empty(t, "")
236
237 mockT := new(MockT)
238 Empty(mockT, "x")
239 if !mockT.Failed {
240 t.Error("Check should fail")
241 }
242}
243
244func TestNotEmpty(t *testing.T) {
245

Callers

nothing calls this directly

Calls 2

EmptyFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…