kindrid/gotest

View on GitHub
should/jsonapi.go

Summary

Maintainability
A
1 hr
Test Coverage

Function BeJsonapiError has 5 return statements (exceeds 4 allowed).
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
    }
Severity: Major
Found in should/jsonapi.go - About 35 mins to fix

    Function NotJSONAPIError has 5 return statements (exceeds 4 allowed).
    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
        }
    Severity: Major
    Found in should/jsonapi.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status