handlers/user/user_test.go
Function TestUser
has 63 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestUser(t *testing.T) {
ts := httptest.NewServer(r)
defer ts.Close()
Your code does not pass gofmt in 1 place. Go fmt your code! Open
Open
package user
- Exclude checks
var userId should be userID Open
Open
userId := user.Id.Hex()
- Exclude checks