(s, substr string)
| 128 | } |
| 129 | |
| 130 | func (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. |
| 138 | func (t *T) CheckStringEqual(val, ref string) { |