Skip to content

Commit

Permalink
Rename all testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-farries committed Mar 6, 2024
1 parent ab09311 commit 801c56f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/state/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func TestInferredMigration(t *testing.T) {
},
},
{
name: "drop table",
name: "create/drop table",
sqlStmts: []string{
"CREATE TABLE table1 (id int)",
"DROP TABLE table1",
Expand All @@ -97,7 +97,7 @@ func TestInferredMigration(t *testing.T) {
},
},
{
name: "drop column",
name: "create/drop column",
sqlStmts: []string{
"CREATE TABLE table1 (id int, b text)",
"ALTER TABLE table1 DROP COLUMN b",
Expand All @@ -116,7 +116,7 @@ func TestInferredMigration(t *testing.T) {
},
},
{
name: "drop check constraint",
name: "create/drop check constraint",
sqlStmts: []string{
"CREATE TABLE table1 (id int, age integer, CONSTRAINT check_age CHECK (age > 0))",
"ALTER TABLE table1 DROP CONSTRAINT check_age",
Expand All @@ -135,7 +135,7 @@ func TestInferredMigration(t *testing.T) {
},
},
{
name: "drop unique constraint",
name: "create/drop unique constraint",
sqlStmts: []string{
"CREATE TABLE table1 (id int, b text, CONSTRAINT unique_b UNIQUE(b))",
"ALTER TABLE table1 DROP CONSTRAINT unique_b",
Expand All @@ -154,7 +154,7 @@ func TestInferredMigration(t *testing.T) {
},
},
{
name: "drop index",
name: "create/drop index",
sqlStmts: []string{
"CREATE TABLE table1 (id int, b text)",
"CREATE INDEX idx_b ON table1(b)",
Expand All @@ -179,7 +179,7 @@ func TestInferredMigration(t *testing.T) {
},
},
{
name: "drop function",
name: "create/drop function",
sqlStmts: []string{
"CREATE FUNCTION foo() RETURNS void AS $$ BEGIN END; $$ LANGUAGE plpgsql",
"DROP FUNCTION foo",
Expand Down

0 comments on commit 801c56f

Please sign in to comment.