MCPcopy Index your code
hub / github.com/pocketbase/pocketbase / checkLogMessages

Function checkLogMessages

tools/logger/batch_handler_test.go:337–354  ·  view source on GitHub ↗
(expected []string, logs []*Log, t *testing.T)

Source from the content-addressed store, hash-verified

335}
336
337func checkLogMessages(expected []string, logs []*Log, t *testing.T) {
338 if len(logs) != len(expected) {
339 t.Fatalf("Expected %d batched logs, got %d (expected: %v)", len(expected), len(logs), expected)
340 }
341
342 for _, message := range expected {
343 exists := false
344 for _, l := range logs {
345 if l.Message == message {
346 exists = true
347 continue
348 }
349 }
350 if !exists {
351 t.Fatalf("Missing %q log message", message)
352 }
353 }
354}

Callers 2

TestBatchHandlerHandleFunction · 0.85
TestBatchHandlerWriteAllFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…