(t testing.TB, actual, expected string)
| 17 | ) |
| 18 | |
| 19 | func assertLogrusContains(t testing.TB, actual, expected string) { |
| 20 | t.Helper() |
| 21 | |
| 22 | if !strings.Contains(actual, expected) { |
| 23 | t.Fatalf("missing from logrus:\n%s", cmp.Diff(expected, strings.Fields(actual))) |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func TestLogrus(t *testing.T) { |
| 28 | t.Parallel() |