fix: remove 10 unused test functions flagged by staticcheck U1000
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user