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

Function TestTrue

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

Source from the content-addressed store, hash-verified

62}
63
64func TestTrue(t *testing.T) {
65 t.Parallel()
66
67 tb := &fakeTB{}
68 assert.True(tb, "meow", true)
69
70 defer func() {
71 recover()
72 simpleassert.Equal(t, "fatals", 1, tb.fatals)
73 }()
74 assert.True(tb, "meow", false)
75}
76
77func TestFalse(t *testing.T) {
78 t.Parallel()

Callers

nothing calls this directly

Calls 1

TrueFunction · 0.92

Tested by

no test coverage detected