MCPcopy Index your code
hub / github.com/golang/example / TestSlogtest

Function TestSlogtest

slog-handler-guide/indenthandler4/indent_handler_test.go:17–25  ·  view source on GitHub ↗

!+TestSlogtest

(t *testing.T)

Source from the content-addressed store, hash-verified

15
16// !+TestSlogtest
17func TestSlogtest(t *testing.T) {
18 var buf bytes.Buffer
19 err := slogtest.TestHandler(New(&buf, nil), func() []map[string]any {
20 return parseLogEntries(t, buf.Bytes())
21 })
22 if err != nil {
23 t.Error(err)
24 }
25}
26
27// !-TestSlogtest
28

Callers

nothing calls this directly

Calls 2

NewFunction · 0.70
parseLogEntriesFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…