aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/api/handler_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/api/handler_test.go')
-rw-r--r--backend/api/handler_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/api/handler_test.go b/backend/api/handler_test.go
index a54f995..a68dfa0 100644
--- a/backend/api/handler_test.go
+++ b/backend/api/handler_test.go
@@ -16,7 +16,7 @@ import (
// mockQuerier implements db.Querier for testing.
type mockQuerier struct {
db.Querier
- getGameByIDFunc func(ctx context.Context, gameID int32) (db.GetGameByIDRow, error)
+ getGameByIDFunc func(ctx context.Context, gameID int32) (db.GetGameByIDRow, error)
listMainPlayersFunc func(ctx context.Context, gameIDs []int32) ([]db.ListMainPlayersRow, error)
}
@@ -37,7 +37,7 @@ func (m *mockQuerier) ListMainPlayers(ctx context.Context, gameIDs []int32) ([]d
// mockTxManager implements db.TxManager for testing.
type mockTxManager struct{}
-func (m *mockTxManager) RunInTx(ctx context.Context, fn func(q db.Querier) error) error {
+func (m *mockTxManager) RunInTx(_ context.Context, fn func(q db.Querier) error) error {
return fn(&mockQuerier{})
}