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

Function True

internal/testify/require/require.go:1944–1952  ·  view source on GitHub ↗

True asserts that the specified value is true. assert.True(t, myBool)

(t TestingT, value bool, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

1942//
1943// assert.True(t, myBool)
1944func True(t TestingT, value bool, msgAndArgs ...interface{}) {
1945 if h, ok := t.(tHelper); ok {
1946 h.Helper()
1947 }
1948 if assert.True(t, value, msgAndArgs...) {
1949 return
1950 }
1951 t.FailNow()
1952}
1953
1954// Truef asserts that the specified value is true.
1955//

Callers 15

Benchmark_exprFunction · 0.92
Benchmark_expr_evalFunction · 0.92
Benchmark_expr_reuseVmFunction · 0.92
Benchmark_envStructFunction · 0.92
Benchmark_envMapFunction · 0.92
Benchmark_callFieldFunction · 0.92
TestEval_exposed_errorFunction · 0.92

Calls 3

TrueFunction · 0.92
FailNowMethod · 0.65
HelperMethod · 0.45

Tested by 15

Benchmark_exprFunction · 0.74
Benchmark_expr_evalFunction · 0.74
Benchmark_expr_reuseVmFunction · 0.74
Benchmark_envStructFunction · 0.74
Benchmark_envMapFunction · 0.74
Benchmark_callFieldFunction · 0.74
TestEval_exposed_errorFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…