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

Function True

internal/assert/assert.go:46–49  ·  view source on GitHub ↗

True asserts true == act.

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

Source from the content-addressed store, hash-verified

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

Callers 6

TestExitFunction · 0.92
TestContextErrorsFunction · 0.92
TestUnmarshalableFunction · 0.92
Test_errorsIsAnyFunction · 0.92

Calls 2

EqualFunction · 0.70
HelperMethod · 0.45

Tested by 6

TestExitFunction · 0.74
TestContextErrorsFunction · 0.74
TestUnmarshalableFunction · 0.74
Test_errorsIsAnyFunction · 0.74