True asserts that the specified value is true. assert.True(t, myBool)
(t TestingT, value bool, msgAndArgs ...interface{})
| 811 | // |
| 812 | // assert.True(t, myBool) |
| 813 | func True(t TestingT, value bool, msgAndArgs ...interface{}) bool { |
| 814 | if !value { |
| 815 | if h, ok := t.(tHelper); ok { |
| 816 | h.Helper() |
| 817 | } |
| 818 | return Fail(t, "Should be true", msgAndArgs...) |
| 819 | } |
| 820 | |
| 821 | return true |
| 822 | |
| 823 | } |
| 824 | |
| 825 | // False asserts that the specified value is false. |
| 826 | // |