MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / assertLogrusContains

Function assertLogrusContains

internal/logging/logrus_test.go:19–25  ·  view source on GitHub ↗
(t testing.TB, actual, expected string)

Source from the content-addressed store, hash-verified

17)
18
19func 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
27func TestLogrus(t *testing.T) {
28 t.Parallel()

Callers 1

TestLogrusFunction · 0.85

Calls 1

HelperMethod · 0.80

Tested by

no test coverage detected