EqualErrorf asserts that a function returned an error (i.e. not `nil`) and that it is equal to the provided error. actualObj, err := SomeFunction() a.EqualErrorf(err, expectedErrorString, "error message %s", "formatted")
(theError error, errString string, msg string, args ...interface{})
| 164 | // actualObj, err := SomeFunction() |
| 165 | // a.EqualErrorf(err, expectedErrorString, "error message %s", "formatted") |
| 166 | func (a *Assertions) EqualErrorf(theError error, errString string, msg string, args ...interface{}) bool { |
| 167 | if h, ok := a.t.(tHelper); ok { |
| 168 | h.Helper() |
| 169 | } |
| 170 | return EqualErrorf(a.t, theError, errString, msg, args...) |
| 171 | } |
| 172 | |
| 173 | // EqualExportedValues asserts that the types of two objects are equal and their public |
| 174 | // fields are also equal. This is useful for comparing structs that have private fields |
nothing calls this directly
no test coverage detected