ok fails the test if an err is not nil.
(tb testing.TB, err error)
| 21 | |
| 22 | // ok fails the test if an err is not nil. |
| 23 | func ok(tb testing.TB, err error) { |
| 24 | tb.Helper() |
| 25 | if err != nil { |
| 26 | tb.Errorf("unexpected error: %s", err.Error()) |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | func equalFloat(tb testing.TB, exp, act float64) { |
| 31 | if exp-act > 0.00000001 || exp-act < -0.00000001 { |
no test coverage detected