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

Function TestEqual

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

Source from the content-addressed store, hash-verified

10)
11
12func TestEqual(t *testing.T) {
13 t.Parallel()
14
15 tb := &fakeTB{}
16 assert.Equal(tb, "meow", 3, 3)
17
18 defer func() {
19 recover()
20 simpleassert.Equal(t, "fatals", 1, tb.fatals)
21 }()
22 assert.Equal(tb, "meow", 3, 4)
23}
24
25func TestEqual_error(t *testing.T) {
26 t.Parallel()

Callers

nothing calls this directly

Calls 1

EqualFunction · 0.92

Tested by

no test coverage detected