True asserts that an expression is true.
(tb testing.TB, ok bool, msgAndArgs ...any)
| 11 | |
| 12 | // True asserts that an expression is true. |
| 13 | func True(tb testing.TB, ok bool, msgAndArgs ...any) { |
| 14 | tb.Helper() |
| 15 | if ok { |
| 16 | return |
| 17 | } |
| 18 | tb.Fatal(formatMsgAndArgs("Expected expression to be true", msgAndArgs...)) |
| 19 | } |
| 20 | |
| 21 | // False asserts that an expression is false. |
| 22 | func False(tb testing.TB, ok bool, msgAndArgs ...any) { |
searching dependent graphs…