MCPcopy Create free account
hub / github.com/coder/slog / TestSkipCleanup

Function TestSkipCleanup

sloggers/slogtest/t_test.go:168–177  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

166}
167
168func TestSkipCleanup(t *testing.T) {
169 t.Parallel()
170
171 tb := &fakeTB{}
172 slogtest.Make(tb, &slogtest.Options{
173 SkipCleanup: true,
174 })
175
176 assert.Len(t, "no cleanups", 0, tb.cleanups)
177}
178
179func TestUnmarshalable(t *testing.T) {
180 t.Parallel()

Callers

nothing calls this directly

Calls 2

MakeFunction · 0.92
LenFunction · 0.92

Tested by

no test coverage detected