MCPcopy
hub / github.com/stretchr/testify / True

Method True

assert/assertion_forward.go:1636–1641  ·  assert/assertion_forward.go::Assertions.True

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

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

Source from the content-addressed store, hash-verified

1634//
1635// a.True(myBool)
1636func (a *Assertions) True(value bool, msgAndArgs ...interface{}) bool {
1637 if h, ok := a.t.(tHelper); ok {
1638 h.Helper()
1639 }
1640 return True(a.t, value, msgAndArgs...)
1641}
1642
1643// Truef asserts that the specified value is true.
1644//

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.65

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