chore: run go fix for Go 1.26 modernization
CI / Go vulnerabilities (push) Successful in 1m10s
CI / Build & Vet (push) Successful in 1m39s
CI / Frontend build (gate) (push) Successful in 1m42s
CI / Frontend QC (audit) (push) Successful in 56s
CI / Frontend QC (typecheck) (push) Successful in 1m36s
CI / Frontend QC (lint) (push) Successful in 1m51s
CI / Tests (prod) (push) Has been cancelled
CI / Tests (dev) (push) Has been cancelled
CI / Race (prod) (push) Has been cancelled
CI / Race (dev) (push) Has been cancelled
CI / Go vulnerabilities (push) Successful in 1m10s
CI / Build & Vet (push) Successful in 1m39s
CI / Frontend build (gate) (push) Successful in 1m42s
CI / Frontend QC (audit) (push) Successful in 56s
CI / Frontend QC (typecheck) (push) Successful in 1m36s
CI / Frontend QC (lint) (push) Successful in 1m51s
CI / Tests (prod) (push) Has been cancelled
CI / Tests (dev) (push) Has been cancelled
CI / Race (prod) (push) Has been cancelled
CI / Race (dev) (push) Has been cancelled
106 files: interface{}→any, strings.Split→SplitSeq, CutPrefix/Cut, strings.Builder, slices.Contains, remove redundant // +build directives, gofmt import ordering and indentation.
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
//go:build test
|
||||
// +build test
|
||||
|
||||
package admin
|
||||
|
||||
@@ -22,8 +21,8 @@ import (
|
||||
|
||||
"crussell/clock"
|
||||
"crussell/db"
|
||||
"crussell/testutils"
|
||||
"crussell/handlers/bookings"
|
||||
"crussell/testutils"
|
||||
"crussell/testutils/fixtures"
|
||||
)
|
||||
|
||||
@@ -80,7 +79,6 @@ func createSecondService(t *testing.T, tx db.Querier, ctx context.Context, name
|
||||
func TestAdminBookings_UpdateServices_ReplaceServices(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx, tx := testutils.SetupTestTx(t)
|
||||
|
||||
|
||||
_, err := fixtures.CreateTestAdminUser(tx)
|
||||
if err != nil {
|
||||
@@ -129,7 +127,6 @@ func TestAdminBookings_UpdateServices_ReplaceServices(t *testing.T) {
|
||||
func TestAdminBookings_UpdateServices_AddService(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx, tx := testutils.SetupTestTx(t)
|
||||
|
||||
|
||||
_, err := fixtures.CreateTestAdminUser(tx)
|
||||
if err != nil {
|
||||
@@ -175,7 +172,6 @@ func TestAdminBookings_UpdateServices_AddService(t *testing.T) {
|
||||
func TestAdminBookings_UpdateServices_RemoveService(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx, tx := testutils.SetupTestTx(t)
|
||||
|
||||
|
||||
_, err := fixtures.CreateTestAdminUser(tx)
|
||||
if err != nil {
|
||||
@@ -233,7 +229,6 @@ func TestAdminBookings_UpdateServices_RemoveService(t *testing.T) {
|
||||
func TestAdminBookings_UpdateServices_WithPriceOverride(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx, tx := testutils.SetupTestTx(t)
|
||||
|
||||
|
||||
_, err := fixtures.CreateTestAdminUser(tx)
|
||||
if err != nil {
|
||||
@@ -286,7 +281,6 @@ func TestAdminBookings_UpdateServices_WithPriceOverride(t *testing.T) {
|
||||
func TestAdminBookings_UpdateServices_WithDurationOverride(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx, tx := testutils.SetupTestTx(t)
|
||||
|
||||
|
||||
_, err := fixtures.CreateTestAdminUser(tx)
|
||||
if err != nil {
|
||||
@@ -339,7 +333,6 @@ func TestAdminBookings_UpdateServices_WithDurationOverride(t *testing.T) {
|
||||
func TestAdminBookings_UpdateServices_WithBothOverrides(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx, tx := testutils.SetupTestTx(t)
|
||||
|
||||
|
||||
_, err := fixtures.CreateTestAdminUser(tx)
|
||||
if err != nil {
|
||||
@@ -393,7 +386,6 @@ func TestAdminBookings_UpdateServices_WithBothOverrides(t *testing.T) {
|
||||
func TestAdminBookings_UpdateServices_UpdateNotes(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx, tx := testutils.SetupTestTx(t)
|
||||
|
||||
|
||||
_, err := fixtures.CreateTestAdminUser(tx)
|
||||
if err != nil {
|
||||
@@ -438,7 +430,6 @@ func TestAdminBookings_UpdateServices_UpdateNotes(t *testing.T) {
|
||||
func TestAdminBookings_UpdateServices_MultipleOverrides(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx, tx := testutils.SetupTestTx(t)
|
||||
|
||||
|
||||
_, err := fixtures.CreateTestAdminUser(tx)
|
||||
if err != nil {
|
||||
@@ -881,7 +872,6 @@ func TestAdminBookings_UpdateServices_WeCancelledBookingRejected(t *testing.T) {
|
||||
func TestAdminBookings_UpdateServices_OverlapWithNextBooking(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx, tx := testutils.SetupTestTx(t)
|
||||
|
||||
|
||||
_, err := fixtures.CreateTestAdminUser(tx)
|
||||
if err != nil {
|
||||
@@ -927,7 +917,6 @@ func TestAdminBookings_UpdateServices_OverlapWithNextBooking(t *testing.T) {
|
||||
func TestAdminBookings_UpdateServices_NoOverlapSucceeds(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx, tx := testutils.SetupTestTx(t)
|
||||
|
||||
|
||||
_, err := fixtures.CreateTestAdminUser(tx)
|
||||
if err != nil {
|
||||
@@ -972,7 +961,6 @@ func TestAdminBookings_UpdateServices_NoOverlapSucceeds(t *testing.T) {
|
||||
func TestAdminBookings_UpdateServices_NoNextBookingSucceeds(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx, tx := testutils.SetupTestTx(t)
|
||||
|
||||
|
||||
_, err := fixtures.CreateTestAdminUser(tx)
|
||||
if err != nil {
|
||||
@@ -1014,7 +1002,6 @@ func TestAdminBookings_UpdateServices_NoNextBookingSucceeds(t *testing.T) {
|
||||
func TestAdminBookings_UpdateServices_ResponseShape(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx, tx := testutils.SetupTestTx(t)
|
||||
|
||||
|
||||
_, err := fixtures.CreateTestAdminUser(tx)
|
||||
if err != nil {
|
||||
@@ -1082,7 +1069,6 @@ func TestAdminBookings_UpdateServices_ResponseShape(t *testing.T) {
|
||||
func TestAdminBookings_UpdateServices_PendingBooking(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx, tx := testutils.SetupTestTx(t)
|
||||
|
||||
|
||||
_, err := fixtures.CreateTestAdminUser(tx)
|
||||
if err != nil {
|
||||
@@ -1117,7 +1103,6 @@ func TestAdminBookings_UpdateServices_PendingBooking(t *testing.T) {
|
||||
func TestAdminBookings_UpdateServices_InProgressBooking(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx, tx := testutils.SetupTestTx(t)
|
||||
|
||||
|
||||
_, err := fixtures.CreateTestAdminUser(tx)
|
||||
if err != nil {
|
||||
@@ -1152,7 +1137,6 @@ func TestAdminBookings_UpdateServices_InProgressBooking(t *testing.T) {
|
||||
func TestAdminBookings_UpdateServices_ClearNotes(t *testing.T) {
|
||||
t.Parallel()
|
||||
ctx, tx := testutils.SetupTestTx(t)
|
||||
|
||||
|
||||
_, err := fixtures.CreateTestAdminUser(tx)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user