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