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

Function True

internal/testify/assert/assertions.go:812–822  ·  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

810//
811// assert.True(t, myBool)
812func True(t TestingT, value bool, msgAndArgs ...interface{}) bool {
813 if !value {
814 if h, ok := t.(tHelper); ok {
815 h.Helper()
816 }
817 return Fail(t, "Should be true", msgAndArgs...)
818 }
819
820 return true
821
822}
823
824// False asserts that the specified value is false.
825//

Callers 15

TestIssue154Function · 0.92
TestDisableShortCircuitFunction · 0.92
TestValue_nil_in_chainFunction · 0.92
TestUnsafePointersFunction · 0.92
TrueFunction · 0.92
TruefFunction · 0.70
TestInDeltaWrapperFunction · 0.70
TestInEpsilonWrapperFunction · 0.70
TestRegexpWrapperFunction · 0.70

Calls 2

FailFunction · 0.70
HelperMethod · 0.45

Tested by 15

TestIssue154Function · 0.74
TestDisableShortCircuitFunction · 0.74
TestValue_nil_in_chainFunction · 0.74
TestUnsafePointersFunction · 0.74
TestInDeltaWrapperFunction · 0.56
TestInEpsilonWrapperFunction · 0.56
TestRegexpWrapperFunction · 0.56
TestTrueFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…