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

Function TestNotEmptyWrapper

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

Source from the content-addressed store, hash-verified

283}
284
285func TestNotEmptyWrapper(t *testing.T) {
286 t.Parallel()
287
288 require := New(t)
289 require.NotEmpty("x")
290
291 mockT := new(MockT)
292 mockRequire := New(mockT)
293 mockRequire.NotEmpty("")
294 if !mockT.Failed {
295 t.Error("Check should fail")
296 }
297}
298
299func TestWithinDurationWrapper(t *testing.T) {
300 t.Parallel()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
NotEmptyMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected