MCPcopy Index your code
hub / github.com/cockroachdb/errors / CheckContains

Method CheckContains

testutils/simplecheck.go:130–135  ·  view source on GitHub ↗
(s, substr string)

Source from the content-addressed store, hash-verified

128}
129
130func (t *T) CheckContains(s, substr string) {
131 t.Helper()
132 if !strings.Contains(s, substr) {
133 t.failWithf(false, "value does not contain substring\n got: %s\\nexpected: %s", s, substr)
134 }
135}
136
137// CheckEqual checks that the string value is equal to some reference.
138func (t *T) CheckStringEqual(val, ref string) {

Callers 2

TestAdaptGoSingleWrapErrFunction · 0.95
TestAdaptGoMultiWrapErrFunction · 0.95

Calls 1

failWithfMethod · 0.95

Tested by 2

TestAdaptGoSingleWrapErrFunction · 0.76
TestAdaptGoMultiWrapErrFunction · 0.76