(t *testing.T, logOutput string)
| 23 | ) |
| 24 | |
| 25 | func verifyBufferOutput(t *testing.T, logOutput string) { |
| 26 | t.Helper() |
| 27 | expectedEvents := []string{"[enforce]", "[addPolicy]", "[removePolicy]", "[savePolicy]", "[loadPolicy]"} |
| 28 | for _, event := range expectedEvents { |
| 29 | if !strings.Contains(logOutput, event) { |
| 30 | t.Errorf("Expected log output to contain %s event", event) |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | func verifyCallbackEntries(t *testing.T, entries []*log.LogEntry) { |
| 36 | t.Helper() |
no outgoing calls
no test coverage detected
searching dependent graphs…