True asserts that the specified value is true. assert.True(t, myBool)
(t TestingT, value bool, msgAndArgs ...interface{})
| 849 | // |
| 850 | // assert.True(t, myBool) |
| 851 | func True(t TestingT, value bool, msgAndArgs ...interface{}) bool { |
| 852 | if !value { |
| 853 | if h, ok := t.(tHelper); ok { |
| 854 | h.Helper() |
| 855 | } |
| 856 | return Fail(t, "Should be true", msgAndArgs...) |
| 857 | } |
| 858 | |
| 859 | return true |
| 860 | } |
| 861 | |
| 862 | // False asserts that the specified value is false. |
| 863 | // |