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

Function TestNotEmpty

require/requirements_test.go:267–277  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

265}
266
267func TestNotEmpty(t *testing.T) {
268 t.Parallel()
269
270 NotEmpty(t, "x")
271
272 mockT := new(MockT)
273 NotEmpty(mockT, "")
274 if !mockT.Failed {
275 t.Error("Check should fail")
276 }
277}
278
279func TestWithinDuration(t *testing.T) {
280 t.Parallel()

Callers

nothing calls this directly

Calls 2

NotEmptyFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected