False asserts that the specified value is false. assert.False(t, myBool)
(t TestingT, value bool, msgAndArgs ...interface{})
| 863 | // |
| 864 | // assert.False(t, myBool) |
| 865 | func 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 | // |