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

Function TestNotSubsetNil

assert/assertions_test.go:1265–1273  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1263}
1264
1265func TestNotSubsetNil(t *testing.T) {
1266 t.Parallel()
1267
1268 mockT := new(testing.T)
1269 NotSubset(mockT, []string{"foo"}, nil)
1270 if !mockT.Failed() {
1271 t.Error("NotSubset on nil set should have failed the test")
1272 }
1273}
1274
1275func Test_containsElement(t *testing.T) {
1276 t.Parallel()

Callers

nothing calls this directly

Calls 3

FailedMethod · 0.80
NotSubsetFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected