MustNoError requires that the given err is nil.
(t *testing.T, err error)
| 118 | |
| 119 | // MustNoError requires that the given err is nil. |
| 120 | func MustNoError(t *testing.T, err error) { |
| 121 | t.Helper() |
| 122 | |
| 123 | if !NoError(t, err) { |
| 124 | t.Fatal() |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | // Error asserts that the given err is not nil. |
| 129 | func Error(t *testing.T, err error) bool { |