kindrid/gotest

View on GitHub
should/http.go

Summary

Maintainability
A
35 mins
Test Coverage

Function MatchHTTPStatusCode has 5 return statements (exceeds 4 allowed).
Open

func MatchHTTPStatusCode(actual interface{}, expected ...interface{}) (fail string) {
    if msg := exactly(1, expected); msg != Ok {
        return msg
    }
    eStatus, ok := expected[0].(int)
Severity: Major
Found in should/http.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status