MCPcopy
hub / github.com/pelletier/go-toml / True

Function True

internal/assert/assertions.go:13–19  ·  view source on GitHub ↗

True asserts that an expression is true.

(tb testing.TB, ok bool, msgAndArgs ...any)

Source from the content-addressed store, hash-verified

11
12// True asserts that an expression is true.
13func True(tb testing.TB, ok bool, msgAndArgs ...any) {
14 tb.Helper()
15 if ok {
16 return
17 }
18 tb.Fatal(formatMsgAndArgs("Expected expression to be true", msgAndArgs...))
19}
20
21// False asserts that an expression is false.
22func False(tb testing.TB, ok bool, msgAndArgs ...any) {

Calls 2

formatMsgAndArgsFunction · 0.85
FatalMethod · 0.80

Used in the wild real call sites across dependent graphs

searching dependent graphs…