MCPcopy Index your code
hub / github.com/coder/slog / fakeSink

Struct fakeSink

slog_test.go:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15var _, slogTestFile, _, _ = runtime.Caller(0)
16
17type fakeSink struct {
18 entries []slog.SinkEntry
19
20 syncs int
21}
22
23func (s *fakeSink) LogEntry(_ context.Context, e slog.SinkEntry) {
24 s.entries = append(s.entries, e)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected