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

Function TestEmpty

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

Source from the content-addressed store, hash-verified

253}
254
255func TestEmpty(t *testing.T) {
256 t.Parallel()
257
258 Empty(t, "")
259
260 mockT := new(MockT)
261 Empty(mockT, "x")
262 if !mockT.Failed {
263 t.Error("Check should fail")
264 }
265}
266
267func TestNotEmpty(t *testing.T) {
268 t.Parallel()

Callers

nothing calls this directly

Calls 2

EmptyFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected