MCPcopy Index your code
hub / github.com/apache/casbin / verifyBufferOutput

Function verifyBufferOutput

logger_test.go:25–33  ·  view source on GitHub ↗
(t *testing.T, logOutput string)

Source from the content-addressed store, hash-verified

23)
24
25func 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
35func verifyCallbackEntries(t *testing.T, entries []*log.LogEntry) {
36 t.Helper()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…