fix: remove 10 unused test functions flagged by staticcheck U1000

This commit is contained in:
2026-07-10 12:01:02 +01:00
parent eed8814021
commit cf0cd8de15
8 changed files with 2 additions and 105 deletions
@@ -319,13 +319,4 @@ func createPayment(t *testing.T, ctx context.Context, q db.Querier, bookingID, p
}
}
func createDiscountPayment(t *testing.T, ctx context.Context, q db.Querier, bookingID string, amount float64) {
t.Helper()
_, err := q.Exec(ctx, `
INSERT INTO payments (booking_id, payment_type, payment_method, amount, status)
VALUES ($1, 'partial', 'discount', $2, 'completed')
`, bookingID, amount)
if err != nil {
t.Fatalf("failed to create discount payment: %v", err)
}
}