True asserts that "got" is true.
(tb testing.TB, got bool, options ...Option)
| 129 | |
| 130 | // True asserts that "got" is true. |
| 131 | func True(tb testing.TB, got bool, options ...Option) bool { |
| 132 | tb.Helper() |
| 133 | if got { |
| 134 | return true |
| 135 | } |
| 136 | report(tb, got, true, "assert.True", false /* showWant */, options...) |
| 137 | return false |
| 138 | } |
| 139 | |
| 140 | // Panics asserts that the function called panics. |
| 141 | func Panics(tb testing.TB, panicker func(), options ...Option) { |