MustError requires that the given err is not nil.
(t *testing.T, err error)
| 139 | |
| 140 | // MustError requires that the given err is not nil. |
| 141 | func MustError(t *testing.T, err error) { |
| 142 | t.Helper() |
| 143 | |
| 144 | if !Error(t, err) { |
| 145 | t.Fatal() |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | // EqualJSON asserts that the given strings are equal after unmarshaling as json. |
| 150 | func EqualJSON(t *testing.T, expected, actual string) bool { |