True asserts that the specified value is true.
(t *testing.T, value bool, errorMessage ...string)
| 50 | |
| 51 | // True asserts that the specified value is true. |
| 52 | func True(t *testing.T, value bool, errorMessage ...string) { |
| 53 | t.Helper() |
| 54 | if value { |
| 55 | return |
| 56 | } |
| 57 | fail(t, "Unexpected false", errorMessage...) |
| 58 | } |
| 59 | |
| 60 | // False asserts that the specified value is false. |
| 61 | func False(t *testing.T, value bool, errorMessage ...string) { |
searching dependent graphs…