should/jsonapi.go
Function BeJsonapiError
has 5 return statements (exceeds 4 allowed). Open
Open
func BeJsonapiError(actual interface{}, expected ...interface{}) (fail string) {
usage := "BeJsonapiError expects a single string argument and passes if that argument parses as a JSON:API error response."
if actual == nil {
return usage
}
Function NotJSONAPIError
has 5 return statements (exceeds 4 allowed). Open
Open
func NotJSONAPIError(actual interface{}, expected ...interface{}) (fail string) {
usage := "BeJSONAPIArray expects a single string argument and passes if that argument parses as a JSONAPI multi-object array."
if actual == nil {
return usage
}