MCPcopy Index your code
hub / github.com/expr-lang/expr / Truef

Method Truef

internal/testify/assert/assertion_forward.go:1544–1549  ·  view source on GitHub ↗

Truef asserts that the specified value is true. a.Truef(myBool, "error message %s", "formatted")

(value bool, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

1542//
1543// a.Truef(myBool, "error message %s", "formatted")
1544func (a *Assertions) Truef(value bool, msg string, args ...interface{}) bool {
1545 if h, ok := a.t.(tHelper); ok {
1546 h.Helper()
1547 }
1548 return Truef(a.t, value, msg, args...)
1549}
1550
1551// WithinDuration asserts that the two times are within duration delta of each other.
1552//

Callers

nothing calls this directly

Calls 2

TruefFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected