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

Function Truef

internal/testify/require/require.go:1957–1965  ·  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

1955//
1956// assert.Truef(t, myBool, "error message %s", "formatted")
1957func Truef(t TestingT, value bool, msg string, args ...interface{}) {
1958 if h, ok := t.(tHelper); ok {
1959 h.Helper()
1960 }
1961 if assert.Truef(t, value, msg, args...) {
1962 return
1963 }
1964 t.FailNow()
1965}
1966
1967// WithinDuration asserts that the two times are within duration delta of each other.
1968//

Callers 2

TestTime_dateFunction · 0.92
TruefMethod · 0.70

Calls 3

TruefFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by 1

TestTime_dateFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…