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

Method True

internal/testify/assert/assertion_forward.go:1534–1539  ·  view source on GitHub ↗

True asserts that the specified value is true. a.True(myBool)

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

Source from the content-addressed store, hash-verified

1532//
1533// a.True(myBool)
1534func (a *Assertions) True(value bool, msgAndArgs ...interface{}) bool {
1535 if h, ok := a.t.(tHelper); ok {
1536 h.Helper()
1537 }
1538 return True(a.t, value, msgAndArgs...)
1539}
1540
1541// Truef asserts that the specified value is true.
1542//

Callers 15

TestTrueWrapperFunction · 0.45
TestNoErrorWrapperFunction · 0.45
TestErrorWrapperFunction · 0.45
TestErrorContainsWrapperFunction · 0.45
TestEqualErrorWrapperFunction · 0.45
TestEmptyWrapperFunction · 0.45
TestNotEmptyWrapperFunction · 0.45
TestLenWrapperFunction · 0.45
TestZeroWrapperFunction · 0.45
TestNotZeroWrapperFunction · 0.45
TestHTTPSuccessFunction · 0.45

Calls 2

TrueFunction · 0.70
HelperMethod · 0.45

Tested by 15

TestTrueWrapperFunction · 0.36
TestNoErrorWrapperFunction · 0.36
TestErrorWrapperFunction · 0.36
TestErrorContainsWrapperFunction · 0.36
TestEqualErrorWrapperFunction · 0.36
TestEmptyWrapperFunction · 0.36
TestNotEmptyWrapperFunction · 0.36
TestLenWrapperFunction · 0.36
TestZeroWrapperFunction · 0.36
TestNotZeroWrapperFunction · 0.36
TestHTTPSuccessFunction · 0.36