MCPcopy Create free account
hub / github.com/corestoreio/pkg / Contains

Function Contains

util/assert/assertions.go:781–793  ·  view source on GitHub ↗

Contains asserts that the specified string, list(array, slice...) or map contains the specified substring or element. assert.Contains(t, "Hello World", "World") assert.Contains(t, ["Hello", "World"], "World") assert.Contains(t, {"Hello": "World"}, "Hello")

(t TestingT, s, contains interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

includeElementFunction · 0.85
FailFunction · 0.85
HelperMethod · 0.80

Tested by

no test coverage detected