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

Function True

sloggers/slogtest/assert/assert.go:48–51  ·  view source on GitHub ↗

True asserts act == true.

(t testing.TB, name string, act bool)

Source from the content-addressed store, hash-verified

46
47// True asserts act == true.
48func True(t testing.TB, name string, act bool) {
49 slog.Helper()
50 Equal(t, name, true, act)
51}
52
53// False asserts act == false.
54func False(t testing.TB, name string, act bool) {

Callers 1

TestTrueFunction · 0.92

Calls 2

EqualFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestTrueFunction · 0.74