Skip to content

Commit

Permalink
🎨 go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ikura-hamu committed Oct 15, 2023
1 parent f0e0603 commit eafe3f7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/service/v2/game.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ func NewGame(
user *User,
) *Game {
return &Game{
db: db,
gameRepository: gameRepository,
gameManagementRole: gameManagementRole,
db: db,
gameRepository: gameRepository,
gameManagementRole: gameManagementRole,
gameGenreRepository: gameGenreRepository,
user: user,
user: user,
}
}

Expand Down
16 changes: 8 additions & 8 deletions src/service/v2/game_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -604,17 +604,17 @@ func TestGetGame(t *testing.T) {
isErr: true,
},
{
description: "GetGameGenresByGameIDがエラーなのでエラー",
gameID: gameID,
description: "GetGameGenresByGameIDがエラーなのでエラー",
gameID: gameID,
executeGetGameManagersByGameID: true,
executeGetActiveUsers: true,
executeGetGenresByGameID: true,
GetGenresByGameIDErr: errors.New("error"),
isErr: true,
executeGetActiveUsers: true,
executeGetGenresByGameID: true,
GetGenresByGameIDErr: errors.New("error"),
isErr: true,
},
{
description: "Genreが空でも問題ない",
gameID: gameID,
gameID: gameID,
game: domain.NewGame(
gameID,
"game name",
Expand Down Expand Up @@ -691,7 +691,7 @@ func TestGetGame(t *testing.T) {
}

if testCase.genres != nil {
for i:= 0; i < len(testCase.genres); i++ {
for i := 0; i < len(testCase.genres); i++ {
assert.Equal(t, testCase.genres[i], gameInfo.Genres[i])

assert.Equal(t, testCase.genres[i].GetID(), gameInfo.Genres[i].GetID())
Expand Down

0 comments on commit eafe3f7

Please sign in to comment.