MCPcopy
hub / github.com/expr-lang/expr / Truef

Function Truef

internal/testify/assert/assertion_format.go:774–779  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

772//
773// assert.Truef(t, myBool, "error message %s", "formatted")
774func Truef(t TestingT, value bool, msg string, args ...interface{}) bool {
775 if h, ok := t.(tHelper); ok {
776 h.Helper()
777 }
778 return True(t, value, append([]interface{}{msg}, args...)...)
779}
780
781// WithinDurationf asserts that the two times are within duration delta of each other.
782//

Callers 2

TruefFunction · 0.92
TruefMethod · 0.70

Calls 2

TrueFunction · 0.70
HelperMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…