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

Method True

require/require_forward.go:1637–1642  ·  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

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

Callers 3

Test_B_PassesMethod · 0.45
TestUnInitializedSuitesFunction · 0.45
TestTrueWrapperFunction · 0.45

Calls 2

TrueFunction · 0.70
HelperMethod · 0.65

Tested by 3

Test_B_PassesMethod · 0.36
TestUnInitializedSuitesFunction · 0.36
TestTrueWrapperFunction · 0.36