Error asserts that a function returned an error (i.e. not `nil`). actualObj, err := SomeFunction() if assert.Error(t, err) { assert.Equal(t, expectedError, err) }
(t TestingT, err error, msgAndArgs ...interface{})
source not stored for this graph (policy: none)
no test coverage detected