MCPcopy
hub / github.com/stretchr/testify / TestEmptyWrapper

Function TestEmptyWrapper

require/forward_requirements_test.go:271–283  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

269}
270
271func TestEmptyWrapper(t *testing.T) {
272 t.Parallel()
273
274 require := New(t)
275 require.Empty("")
276
277 mockT := new(MockT)
278 mockRequire := New(mockT)
279 mockRequire.Empty("x")
280 if !mockT.Failed {
281 t.Error("Check should fail")
282 }
283}
284
285func TestNotEmptyWrapper(t *testing.T) {
286 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
EmptyMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected