diff --git a/internal/actions/dump/dump_test.go b/internal/actions/dump/dump_test.go index 12fca1d3..30df8f4a 100644 --- a/internal/actions/dump/dump_test.go +++ b/internal/actions/dump/dump_test.go @@ -13,7 +13,6 @@ import ( ) func Test_buildCommand(t *testing.T) { - t.Parallel() pgpassword := command.NewEnv("PGPASSWORD", "") mysqlPwd := command.NewEnv("MYSQL_PWD", "") @@ -59,7 +58,6 @@ func Test_buildCommand(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() got, err := tt.args.conf.buildCommand() tt.wantErr(t, err) assert.Equal(t, tt.want, got) diff --git a/internal/actions/dump/generate_filename_test.go b/internal/actions/dump/generate_filename_test.go index 37882283..8389afe5 100644 --- a/internal/actions/dump/generate_filename_test.go +++ b/internal/actions/dump/generate_filename_test.go @@ -8,7 +8,6 @@ import ( ) func TestFilename_Generate(t *testing.T) { - t.Parallel() type fields struct { Database string Namespace string @@ -27,7 +26,6 @@ func TestFilename_Generate(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() vars := Filename{ Database: tt.fields.Database, Namespace: tt.fields.Namespace, diff --git a/internal/actions/restore/restore_test.go b/internal/actions/restore/restore_test.go index 099f7dc6..e8c6a2f6 100644 --- a/internal/actions/restore/restore_test.go +++ b/internal/actions/restore/restore_test.go @@ -16,7 +16,6 @@ import ( ) func TestRestore_buildCommand(t *testing.T) { - t.Parallel() pgpassword := command.NewEnv("PGPASSWORD", "") type fields struct { @@ -64,7 +63,6 @@ func TestRestore_buildCommand(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() action := Restore{ Restore: tt.fields.Restore, Analyze: tt.fields.Analyze, @@ -77,7 +75,6 @@ func TestRestore_buildCommand(t *testing.T) { } func TestRestore_copy(t *testing.T) { - t.Parallel() input := "hello world" var gzipped strings.Builder gzw := gzip.NewWriter(&gzipped) @@ -104,7 +101,6 @@ func TestRestore_copy(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() action := Restore{ Restore: tt.fields.Restore, Analyze: tt.fields.Analyze, diff --git a/internal/command/builder_test.go b/internal/command/builder_test.go index df84ef2e..6c8e9565 100644 --- a/internal/command/builder_test.go +++ b/internal/command/builder_test.go @@ -9,7 +9,6 @@ import ( type panicFunc func(assert.TestingT, assert.PanicTestFunc, ...any) bool func TestBuilder_Push(t *testing.T) { - t.Parallel() type fields struct { cmd []any } @@ -29,7 +28,6 @@ func TestBuilder_Push(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() tt.wantPanic(t, func() { j := &Builder{ cmd: tt.fields.cmd, @@ -42,7 +40,6 @@ func TestBuilder_Push(t *testing.T) { } func TestBuilder_String(t *testing.T) { - t.Parallel() type fields struct { cmd []any } @@ -60,7 +57,6 @@ func TestBuilder_String(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() tt.wantPanic(t, func() { j := Builder{ cmd: tt.fields.cmd, @@ -73,7 +69,6 @@ func TestBuilder_String(t *testing.T) { } func TestBuilder_Unshift(t *testing.T) { - t.Parallel() type fields struct { cmd []any } @@ -93,7 +88,6 @@ func TestBuilder_Unshift(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() tt.wantPanic(t, func() { j := &Builder{ cmd: tt.fields.cmd, @@ -106,7 +100,6 @@ func TestBuilder_Unshift(t *testing.T) { } func TestNewBuilder(t *testing.T) { - t.Parallel() type args struct { p []any } @@ -121,7 +114,6 @@ func TestNewBuilder(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() got := NewBuilder(tt.args.p...) assert.Equal(t, tt.want, got) }) diff --git a/internal/command/env_test.go b/internal/command/env_test.go index b2daa219..b731d8db 100644 --- a/internal/command/env_test.go +++ b/internal/command/env_test.go @@ -7,7 +7,6 @@ import ( ) func TestEnv_Quote(t *testing.T) { - t.Parallel() type fields struct { Key string Value string @@ -22,7 +21,6 @@ func TestEnv_Quote(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() e := Env{ Key: tt.fields.Key, Value: tt.fields.Value, @@ -34,7 +32,6 @@ func TestEnv_Quote(t *testing.T) { } func TestNewEnv(t *testing.T) { - t.Parallel() type args struct { k string v string @@ -48,7 +45,6 @@ func TestNewEnv(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() got := NewEnv(tt.args.k, tt.args.v) assert.Equal(t, tt.want, got) }) diff --git a/internal/command/split_test.go b/internal/command/split_test.go index d2accb2c..971c786d 100644 --- a/internal/command/split_test.go +++ b/internal/command/split_test.go @@ -7,7 +7,6 @@ import ( ) func TestSplit_Quote(t *testing.T) { - t.Parallel() tests := []struct { name string s Split @@ -24,7 +23,6 @@ func TestSplit_Quote(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() assert.Equalf(t, tt.want, tt.s.Quote(), "String()") }) } diff --git a/internal/database/detect_dialect_test.go b/internal/database/detect_dialect_test.go index b006a488..54ef7fe0 100644 --- a/internal/database/detect_dialect_test.go +++ b/internal/database/detect_dialect_test.go @@ -15,7 +15,6 @@ import ( ) func TestDetectDialect(t *testing.T) { - t.Parallel() postgresPod := v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Labels: map[string]string{ @@ -86,7 +85,6 @@ func TestDetectDialect(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() got, err := DetectDialect(context.Background(), tt.args.client) tt.wantErr(t, err) assert.Equal(t, tt.want, got) diff --git a/internal/database/dialect_test.go b/internal/database/dialect_test.go index f2d0689e..6338cdc7 100644 --- a/internal/database/dialect_test.go +++ b/internal/database/dialect_test.go @@ -13,7 +13,6 @@ import ( ) func TestNew(t *testing.T) { - t.Parallel() type args struct { name string } @@ -36,7 +35,6 @@ func TestNew(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() got, err := New(tt.args.name) tt.wantErr(t, err) assert.Equal(t, tt.want, got) @@ -45,7 +43,6 @@ func TestNew(t *testing.T) { } func TestDetectFormat(t *testing.T) { - t.Parallel() type args struct { db config.DBFiler path string @@ -67,14 +64,12 @@ func TestDetectFormat(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() assert.Equalf(t, tt.want, DetectFormat(tt.args.db, tt.args.path), "DetectFormat(%v, %v)", tt.args.db, tt.args.path) }) } } func TestGetExtension(t *testing.T) { - t.Parallel() type args struct { db config.DBFiler format sqlformat.Format @@ -95,7 +90,6 @@ func TestGetExtension(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() assert.Equalf(t, tt.want, GetExtension(tt.args.db, tt.args.format), "GetExtension(%v, %v)", tt.args.db, tt.args.format) }) } diff --git a/internal/database/mariadb/mariadb_test.go b/internal/database/mariadb/mariadb_test.go index f09cfaff..3fb824d9 100644 --- a/internal/database/mariadb/mariadb_test.go +++ b/internal/database/mariadb/mariadb_test.go @@ -11,7 +11,6 @@ import ( ) func TestMariaDB_DatabaseDropQuery(t *testing.T) { - t.Parallel() type args struct { database string } @@ -24,7 +23,6 @@ func TestMariaDB_DatabaseDropQuery(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() ma := MariaDB{} got := ma.DatabaseDropQuery(tt.args.database) assert.Equal(t, tt.want, got) @@ -33,7 +31,6 @@ func TestMariaDB_DatabaseDropQuery(t *testing.T) { } func TestMariaDB_DumpCommand(t *testing.T) { - t.Parallel() type args struct { conf config.Dump } @@ -70,7 +67,6 @@ func TestMariaDB_DumpCommand(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() ma := MariaDB{} got := ma.DumpCommand(tt.args.conf) assert.Equal(t, tt.want, got) @@ -79,7 +75,6 @@ func TestMariaDB_DumpCommand(t *testing.T) { } func TestMariaDB_ExecCommand(t *testing.T) { - t.Parallel() type args struct { conf config.Exec } @@ -111,7 +106,6 @@ func TestMariaDB_ExecCommand(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() ma := MariaDB{} got := ma.ExecCommand(tt.args.conf) assert.Equal(t, tt.want, got) @@ -120,7 +114,6 @@ func TestMariaDB_ExecCommand(t *testing.T) { } func TestMariaDB_DatabaseListQuery(t *testing.T) { - t.Parallel() tests := []struct { name string want string @@ -129,7 +122,6 @@ func TestMariaDB_DatabaseListQuery(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() ma := MariaDB{} got := ma.DatabaseListQuery() assert.Equal(t, tt.want, got) @@ -138,7 +130,6 @@ func TestMariaDB_DatabaseListQuery(t *testing.T) { } func TestMariaDB_PasswordEnvs(t *testing.T) { - t.Parallel() type args struct { c config.Global } @@ -152,7 +143,6 @@ func TestMariaDB_PasswordEnvs(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() db := MariaDB{} got := db.PasswordEnvs(tt.args.c) assert.Equal(t, tt.want, got) @@ -161,7 +151,6 @@ func TestMariaDB_PasswordEnvs(t *testing.T) { } func TestMariaDB_RestoreCommand(t *testing.T) { - t.Parallel() type args struct { conf config.Restore inputFormat sqlformat.Format @@ -194,7 +183,6 @@ func TestMariaDB_RestoreCommand(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() ma := MariaDB{} got := ma.RestoreCommand(tt.args.conf, tt.args.inputFormat) assert.Equal(t, tt.want, got) diff --git a/internal/database/mongodb/mongodb_test.go b/internal/database/mongodb/mongodb_test.go index bba9fcd0..d7415114 100644 --- a/internal/database/mongodb/mongodb_test.go +++ b/internal/database/mongodb/mongodb_test.go @@ -11,7 +11,6 @@ import ( ) func TestMongoDB_DumpCommand(t *testing.T) { - t.Parallel() type args struct { conf config.Dump } @@ -53,7 +52,6 @@ func TestMongoDB_DumpCommand(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() ma := MongoDB{} got := ma.DumpCommand(tt.args.conf) assert.Equal(t, tt.want, got) @@ -62,7 +60,6 @@ func TestMongoDB_DumpCommand(t *testing.T) { } func TestMongoDB_ExecCommand(t *testing.T) { - t.Parallel() type args struct { conf config.Exec } @@ -94,7 +91,6 @@ func TestMongoDB_ExecCommand(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() ma := MongoDB{} got := ma.ExecCommand(tt.args.conf) assert.Equal(t, tt.want, got) @@ -103,7 +99,6 @@ func TestMongoDB_ExecCommand(t *testing.T) { } func TestMongoDB_PasswordEnvs(t *testing.T) { - t.Parallel() type args struct { c config.Global } @@ -117,7 +112,6 @@ func TestMongoDB_PasswordEnvs(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() db := MongoDB{} got := db.PasswordEnvs(tt.args.c) assert.Equal(t, tt.want, got) @@ -126,7 +120,6 @@ func TestMongoDB_PasswordEnvs(t *testing.T) { } func TestMongoDB_RestoreCommand(t *testing.T) { - t.Parallel() type args struct { conf config.Restore inputFormat sqlformat.Format @@ -169,7 +162,6 @@ func TestMongoDB_RestoreCommand(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() ma := MongoDB{} got := ma.RestoreCommand(tt.args.conf, tt.args.inputFormat) assert.Equal(t, tt.want, got) @@ -178,7 +170,6 @@ func TestMongoDB_RestoreCommand(t *testing.T) { } func TestMongoDB_AuthenticationDatabase(t *testing.T) { - t.Parallel() type args struct { c config.Global } @@ -191,7 +182,6 @@ func TestMongoDB_AuthenticationDatabase(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() db := MongoDB{} got := db.AuthenticationDatabase(tt.args.c) assert.Equal(t, tt.want, got) diff --git a/internal/database/postgres/postgres_test.go b/internal/database/postgres/postgres_test.go index 67d5a370..9dae1463 100644 --- a/internal/database/postgres/postgres_test.go +++ b/internal/database/postgres/postgres_test.go @@ -26,7 +26,6 @@ func newCNPGPod() v1.Pod { } func TestPostgres_DumpCommand(t *testing.T) { - t.Parallel() type args struct { conf config.Dump } @@ -88,7 +87,6 @@ func TestPostgres_DumpCommand(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() po := Postgres{} got := po.DumpCommand(tt.args.conf) assert.Equal(t, tt.want, got) @@ -97,7 +95,6 @@ func TestPostgres_DumpCommand(t *testing.T) { } func TestPostgres_ExecCommand(t *testing.T) { - t.Parallel() type args struct { conf config.Exec } @@ -129,7 +126,6 @@ func TestPostgres_ExecCommand(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() po := Postgres{} got := po.ExecCommand(tt.args.conf) assert.Equal(t, tt.want, got) @@ -138,7 +134,6 @@ func TestPostgres_ExecCommand(t *testing.T) { } func TestPostgres_FilterPods(t *testing.T) { - t.Parallel() postgresPod := v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Labels: map[string]string{ @@ -170,7 +165,6 @@ func TestPostgres_FilterPods(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() po := Postgres{} got, err := po.FilterPods(context.TODO(), tt.args.client, tt.args.pods) tt.wantErr(t, err) @@ -181,8 +175,6 @@ func TestPostgres_FilterPods(t *testing.T) { } func TestPostgres_PasswordEnvs(t *testing.T) { - t.Parallel() - type args struct { c config.Global } @@ -215,7 +207,6 @@ func TestPostgres_PasswordEnvs(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() db := Postgres{} got := db.PasswordEnvs(tt.args.c) assert.Equal(t, tt.want, got) @@ -224,7 +215,6 @@ func TestPostgres_PasswordEnvs(t *testing.T) { } func TestPostgres_RestoreCommand(t *testing.T) { - t.Parallel() pgpassword := command.NewEnv("PGPASSWORD", "") type args struct { @@ -289,7 +279,6 @@ func TestPostgres_RestoreCommand(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() po := Postgres{} got := po.RestoreCommand(tt.args.conf, tt.args.inputFormat) assert.Equal(t, tt.want, got) @@ -298,7 +287,6 @@ func TestPostgres_RestoreCommand(t *testing.T) { } func TestPostgres_quoteParam(t *testing.T) { - t.Parallel() type args struct { param string } @@ -316,7 +304,6 @@ func TestPostgres_quoteParam(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() po := Postgres{} got := po.quoteParam(tt.args.param) assert.Equal(t, tt.want, got) diff --git a/internal/database/sqlformat/format_test.go b/internal/database/sqlformat/format_test.go index 9bb81324..0b95a019 100644 --- a/internal/database/sqlformat/format_test.go +++ b/internal/database/sqlformat/format_test.go @@ -8,7 +8,6 @@ import ( ) func TestFormat_Set(t *testing.T) { - t.Parallel() type args struct { s string } @@ -30,7 +29,6 @@ func TestFormat_Set(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() err := tt.i.Set(tt.args.s) tt.wantErr(t, err) }) @@ -38,7 +36,6 @@ func TestFormat_Set(t *testing.T) { } func TestFormat_Type(t *testing.T) { - t.Parallel() tests := []struct { name string i Format @@ -48,7 +45,6 @@ func TestFormat_Type(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() got := tt.i.Type() assert.Equal(t, tt.want, got) }) diff --git a/internal/kubernetes/filter/and_test.go b/internal/kubernetes/filter/and_test.go index 04d1f13a..35cf661b 100644 --- a/internal/kubernetes/filter/and_test.go +++ b/internal/kubernetes/filter/and_test.go @@ -8,7 +8,6 @@ import ( ) func TestAnd_Matches(t *testing.T) { - t.Parallel() type args struct { pod v1.Pod } @@ -39,7 +38,6 @@ func TestAnd_Matches(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() got := tt.queries.Matches(tt.args.pod) assert.Equal(t, tt.want, got) }) diff --git a/internal/kubernetes/filter/label_test.go b/internal/kubernetes/filter/label_test.go index 881416c4..91ddddf9 100644 --- a/internal/kubernetes/filter/label_test.go +++ b/internal/kubernetes/filter/label_test.go @@ -8,7 +8,6 @@ import ( ) func TestLabel_Matches(t *testing.T) { - t.Parallel() type fields struct { Name string Value string @@ -27,7 +26,6 @@ func TestLabel_Matches(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() query := Label{ Name: tt.fields.Name, Value: tt.fields.Value, diff --git a/internal/kubernetes/filter/or_test.go b/internal/kubernetes/filter/or_test.go index dfbb7e69..30ae3ee9 100644 --- a/internal/kubernetes/filter/or_test.go +++ b/internal/kubernetes/filter/or_test.go @@ -8,7 +8,6 @@ import ( ) func TestLabelQueryOr_Matches(t *testing.T) { - t.Parallel() type args struct { pod v1.Pod } @@ -39,7 +38,6 @@ func TestLabelQueryOr_Matches(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() got := tt.queries.Matches(tt.args.pod) assert.Equal(t, tt.want, got) }) diff --git a/internal/storage/gcs_test.go b/internal/storage/gcs_test.go index 969880b7..2a20803e 100644 --- a/internal/storage/gcs_test.go +++ b/internal/storage/gcs_test.go @@ -3,7 +3,6 @@ package storage import "testing" func TestIsGCS(t *testing.T) { - t.Parallel() type args struct { path string } @@ -19,7 +18,6 @@ func TestIsGCS(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() if got := IsGCS(tt.args.path); got != tt.want { t.Errorf("IsGCS() = %v, want %v", got, tt.want) } @@ -28,7 +26,6 @@ func TestIsGCS(t *testing.T) { } func TestIsGCSDir(t *testing.T) { - t.Parallel() type args struct { path string } @@ -45,7 +42,6 @@ func TestIsGCSDir(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() if got := IsGCSDir(tt.args.path); got != tt.want { t.Errorf("IsGCSDir() = %v, want %v", got, tt.want) } diff --git a/internal/storage/s3_test.go b/internal/storage/s3_test.go index 145cff01..ec78c11c 100644 --- a/internal/storage/s3_test.go +++ b/internal/storage/s3_test.go @@ -3,7 +3,6 @@ package storage import "testing" func TestIsS3(t *testing.T) { - t.Parallel() type args struct { path string } @@ -19,7 +18,6 @@ func TestIsS3(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() if got := IsS3(tt.args.path); got != tt.want { t.Errorf("IsS3() = %v, want %v", got, tt.want) } @@ -28,7 +26,6 @@ func TestIsS3(t *testing.T) { } func TestIsS3Dir(t *testing.T) { - t.Parallel() type args struct { path string } @@ -45,7 +42,6 @@ func TestIsS3Dir(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - t.Parallel() if got := IsS3Dir(tt.args.path); got != tt.want { t.Errorf("IsS3Dir() = %v, want %v", got, tt.want) }