batazor/go-auth

View on GitHub
handlers/user/user_test.go

Summary

Maintainability
A
1 hr
Test Coverage

Function TestUser has 63 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func TestUser(t *testing.T) {

    ts := httptest.NewServer(r)
    defer ts.Close()

Severity: Minor
Found in handlers/user/user_test.go - About 1 hr to fix

    Your code does not pass gofmt in 1 place. Go fmt your code!
    Open

    package user
    Severity: Minor
    Found in handlers/user/user_test.go by gofmt

    var userId should be userID
    Open

        userId := user.Id.Hex()
    Severity: Minor
    Found in handlers/user/user_test.go by golint

    There are no issues that match your filters.

    Category
    Status