MCPcopy Create free account
hub / github.com/stretchr/testify / TestNotSubsetNil

Function TestNotSubsetNil

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

Source from the content-addressed store, hash-verified

1206}
1207
1208func TestNotSubsetNil(t *testing.T) {
1209 mockT := new(testing.T)
1210 NotSubset(mockT, []string{"foo"}, nil)
1211 if !mockT.Failed() {
1212 t.Error("NotSubset on nil set should have failed the test")
1213 }
1214}
1215
1216func Test_containsElement(t *testing.T) {
1217

Callers

nothing calls this directly

Calls 3

FailedMethod · 0.80
NotSubsetFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected