(t *testing.T, lines []string, ok func(s string) bool)
| 123 | } |
| 124 | |
| 125 | func verifyHasLine(t *testing.T, lines []string, ok func(s string) bool) { |
| 126 | t.Helper() |
| 127 | |
| 128 | if slices.ContainsFunc(lines, ok) { |
| 129 | return |
| 130 | } |
| 131 | |
| 132 | t.Errorf("output line meeting given condition was not found: %v", lines) |
| 133 | } |
no test coverage detected