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

Function False

require/require.go:561–569  ·  view source on GitHub ↗

False asserts that the specified value is false. require.False(t, myBool)

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

Source from the content-addressed store, hash-verified

559//
560// require.False(t, myBool)
561func False(t TestingT, value bool, msgAndArgs ...interface{}) {
562 if h, ok := t.(tHelper); ok {
563 h.Helper()
564 }
565 if assert.False(t, value, msgAndArgs...) {
566 return
567 }
568 t.FailNow()
569}
570
571// Falsef asserts that the specified value is false.
572//

Callers 4

TestSuiteWithStatsFunction · 0.92
FalseMethod · 0.70
TestFalseFunction · 0.70
TestEventuallyWithTTrueFunction · 0.70

Calls 3

FalseFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by 3

TestSuiteWithStatsFunction · 0.74
TestFalseFunction · 0.56
TestEventuallyWithTTrueFunction · 0.56