assert fails the test if the condition is false.
(tb testing.TB, condition bool, msg string, v ...interface{})
| 13 | |
| 14 | // assert fails the test if the condition is false. |
| 15 | func assert(tb testing.TB, condition bool, msg string, v ...interface{}) { |
| 16 | tb.Helper() |
| 17 | if !condition { |
| 18 | tb.Errorf(msg, v...) |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | // ok fails the test if an err is not nil. |
| 23 | func ok(tb testing.TB, err error) { |
no outgoing calls
no test coverage detected