(t *testing.T, logOutput string)
| 197 | } |
| 198 | |
| 199 | func verifySelectiveBufferOutput(t *testing.T, logOutput string) { |
| 200 | t.Helper() |
| 201 | if !strings.Contains(logOutput, "[enforce]") { |
| 202 | t.Errorf("Expected log output to contain enforce events") |
| 203 | } |
| 204 | if !strings.Contains(logOutput, "[addPolicy]") { |
| 205 | t.Errorf("Expected log output to contain addPolicy event") |
| 206 | } |
| 207 | if strings.Contains(logOutput, "[removePolicy]") { |
| 208 | t.Errorf("Did not expect log output to contain removePolicy event") |
| 209 | } |
| 210 | if strings.Contains(logOutput, "[loadPolicy]") { |
| 211 | t.Errorf("Did not expect log output to contain loadPolicy event") |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | func verifySelectiveCallbackEntries(t *testing.T, entries []*log.LogEntry) { |
| 216 | t.Helper() |
no outgoing calls
no test coverage detected
searching dependent graphs…