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

Function TestFalse

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

Source from the content-addressed store, hash-verified

75}
76
77func TestFalse(t *testing.T) {
78 t.Parallel()
79
80 tb := &fakeTB{}
81 assert.False(tb, "woof", false)
82
83 defer func() {
84 recover()
85 simpleassert.Equal(t, "fatals", 1, tb.fatals)
86 }()
87 assert.False(tb, "woof", true)
88}
89
90func TestError(t *testing.T) {
91 t.Parallel()

Callers

nothing calls this directly

Calls 1

FalseFunction · 0.92

Tested by

no test coverage detected