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

Function TestSuccess

sloggers/slogtest/assert/assert_test.go:51–62  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

49}
50
51func TestSuccess(t *testing.T) {
52 t.Parallel()
53
54 tb := &fakeTB{}
55 assert.Success(tb, "meow", nil)
56
57 defer func() {
58 recover()
59 simpleassert.Equal(t, "fatals", 1, tb.fatals)
60 }()
61 assert.Success(tb, "meow", io.EOF)
62}
63
64func TestTrue(t *testing.T) {
65 t.Parallel()

Callers

nothing calls this directly

Calls 1

SuccessFunction · 0.92

Tested by

no test coverage detected