efritz/derision

View on GitHub
internal/expectation/serialization.go

Summary

Maintainability
A
40 mins
Test Coverage

Function Unmarshal has 6 return statements (exceeds 4 allowed).
Open

func Unmarshal(payload []byte) (Expectation, error) {
    e := &jsonExpectation{}
    if err := json.Unmarshal(payload, &e); err != nil {
        return nil, fmt.Errorf("failed to unmarshal payload (%s)", err.Error())
    }
Severity: Major
Found in internal/expectation/serialization.go - About 40 mins to fix

    exported function Unmarshal should have comment or be unexported
    Open

    func Unmarshal(payload []byte) (Expectation, error) {

    There are no issues that match your filters.

    Category
    Status