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 not stored for this graph (policy: none)
nothing calls this directly
no test coverage detected