MCPcopy Create free account
hub / github.com/stretchr/testify / False

Function False

assert/assertions.go:828–838  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

826//
827// assert.False(t, myBool)
828func False(t TestingT, value bool, msgAndArgs ...interface{}) bool {
829 if value {
830 if h, ok := t.(tHelper); ok {
831 h.Helper()
832 }
833 return Fail(t, "Should be false", msgAndArgs...)
834 }
835
836 return true
837
838}
839
840// NotEqual asserts that the specified values are NOT equal.
841//

Calls 2

FailFunction · 0.70
HelperMethod · 0.65