(t *testing.T, got, expected string)
| 98 | } |
| 99 | |
| 100 | func checkStringContains(t *testing.T, got, expected string) { |
| 101 | t.Helper() |
| 102 | if !strings.Contains(got, expected) { |
| 103 | t.Errorf("Expected to contain: \n %v\nGot:\n %v\n", expected, got) |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | func checkStringOmits(t *testing.T, got, expected string) { |
| 108 | t.Helper() |
no test coverage detected