Skip to content

Commit

Permalink
fix(lint)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsharifnasab committed Sep 10, 2024
1 parent 8809828 commit b922e6b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 20 deletions.
45 changes: 27 additions & 18 deletions internal/authenticator/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ func TestBuilderWithoutAuthenticator(t *testing.T) {
Timeout: 0,
},
BlackListUserLoggingConfig: config.BlackListUserLogging{
Iss: 0,
UserIDs: []int{},
Iss: 0,
UserIDs: []int{},
UserHashedIDs: []string{},
},
}

Expand Down Expand Up @@ -66,8 +67,9 @@ func TestBuilderInvalidAuthenticator(t *testing.T) {
Timeout: 0,
},
BlackListUserLoggingConfig: config.BlackListUserLogging{
Iss: 0,
UserIDs: []int{},
Iss: 0,
UserIDs: []int{},
UserHashedIDs: []string{},
},
}

Expand Down Expand Up @@ -107,8 +109,9 @@ func TestBuilderInternalAuthenticator(t *testing.T) {
Timeout: 0,
},
BlackListUserLoggingConfig: config.BlackListUserLogging{
Iss: 0,
UserIDs: []int{},
Iss: 0,
UserIDs: []int{},
UserHashedIDs: []string{},
},
}

Expand Down Expand Up @@ -150,8 +153,9 @@ func TestBuilderInternalAuthenticatorWithInvalidKey(t *testing.T) {
Timeout: 0,
},
BlackListUserLoggingConfig: config.BlackListUserLogging{
Iss: 0,
UserIDs: []int{},
Iss: 0,
UserIDs: []int{},
UserHashedIDs: []string{},
},
}

Expand Down Expand Up @@ -208,8 +212,9 @@ func TestBuilderManualAuthenticatorWithoutKey(t *testing.T) {
Timeout: 0,
},
BlackListUserLoggingConfig: config.BlackListUserLogging{
Iss: 0,
UserIDs: []int{},
Iss: 0,
UserIDs: []int{},
UserHashedIDs: []string{},
},
}

Expand Down Expand Up @@ -288,8 +293,9 @@ func TestBuilderManualAuthenticator(t *testing.T) {
Timeout: 0,
},
BlackListUserLoggingConfig: config.BlackListUserLogging{
Iss: 0,
UserIDs: []int{},
Iss: 0,
UserIDs: []int{},
UserHashedIDs: []string{},
},
}

Expand Down Expand Up @@ -365,8 +371,9 @@ func TestBuilderManualAuthenticatorInvalidMapping_1(t *testing.T) {
Timeout: 0,
},
BlackListUserLoggingConfig: config.BlackListUserLogging{
Iss: 0,
UserIDs: []int{},
Iss: 0,
UserIDs: []int{},
UserHashedIDs: []string{},
},
}

Expand Down Expand Up @@ -443,8 +450,9 @@ func TestBuilderManualAuthenticatorInvalidMapping_2(t *testing.T) {
Timeout: 0,
},
BlackListUserLoggingConfig: config.BlackListUserLogging{
Iss: 0,
UserIDs: []int{},
Iss: 0,
UserIDs: []int{},
UserHashedIDs: []string{},
},
}

Expand Down Expand Up @@ -523,8 +531,9 @@ func TestBuilderManualAuthenticatorInvalidAccess(t *testing.T) {
Timeout: 0,
},
BlackListUserLoggingConfig: config.BlackListUserLogging{
Iss: 0,
UserIDs: []int{},
Iss: 0,
UserIDs: []int{},
UserHashedIDs: []string{},
},
}

Expand Down
5 changes: 3 additions & 2 deletions internal/config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ func Default() Config {
Timeout: 5 * time.Second,
},
BlackListUserLogging: BlackListUserLogging{
Iss: 0,
UserIDs: []int{},
Iss: 0,
UserIDs: []int{},
UserHashedIDs: []string{},
},

Check warning on line 44 in internal/config/default.go

View check run for this annotation

Codecov / codecov/patch

internal/config/default.go#L40-L44

Added lines #L40 - L44 were not covered by tests
}
}
Expand Down

0 comments on commit b922e6b

Please sign in to comment.