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

Function False

assert/assertions.go:865–874  ·  assert/assertions.go::False

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

863//
864// assert.False(t, myBool)
865func False(t TestingT, value bool, msgAndArgs ...interface{}) bool {
866 if value {
867 if h, ok := t.(tHelper); ok {
868 h.Helper()
869 }
870 return Fail(t, "Should be false", msgAndArgs...)
871 }
872
873 return true
874}
875
876// NotEqual asserts that the specified values are NOT equal.
877//

Calls 2

FailFunction · 0.70
HelperMethod · 0.65