MCPcopy Create free account
hub / github.com/google/gapid / DoesNotContain

Method DoesNotContain

core/assert/string.go:80–82  ·  view source on GitHub ↗

DoesNotContain asserts that the supplied string does not contain substr.

(substr string)

Source from the content-addressed store, hash-verified

78
79// DoesNotContain asserts that the supplied string does not contain substr.
80func (o OnString) DoesNotContain(substr string) bool {
81 return o.Compare(o.value, "does not contain", substr).Test(!strings.Contains(o.value, substr))
82}
83
84// HasPrefix asserts that the supplied string start with substr.
85func (o OnString) HasPrefix(substr string) bool {

Callers 1

Calls 3

TestMethod · 0.80
ContainsMethod · 0.65
CompareMethod · 0.45

Tested by 1