Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
test: remove kr/pretty package (#1744)
rebelice417cb90ab7ce
diff --git a/go.mod b/go.modindex b9a94b7710..db4e54e08e 100644--- a/go.mod+++ b/go.mod@@ -17,7 +17,6 @@ require (github.com/gosimple/slug v1.10.0github.com/jackc/pgtype v1.10.0github.com/jackc/pgx/v4 v4.15.0- github.com/kr/pretty v0.2.1github.com/labstack/echo-contrib v0.12.0github.com/labstack/echo/v4 v4.7.2github.com/mattn/go-sqlite3 v1.14.7diff --git a/plugin/parser/engine/pg/convert_test.go b/plugin/parser/engine/pg/convert_test.goindex dafd245ae5..97be0271de 100644--- a/plugin/parser/engine/pg/convert_test.go+++ b/plugin/parser/engine/pg/convert_test.go@@ -5,7 +5,6 @@ import ("github.com/bytebase/bytebase/plugin/parser""github.com/bytebase/bytebase/plugin/parser/ast"- "github.com/kr/pretty""github.com/stretchr/testify/require")@@ -20,7 +19,7 @@ func runTests(t *testing.T, tests []testData) {for _, test := range tests {res, err := p.Parse(parser.Context{}, test.stmt)require.NoError(t, err)- require.Nilf(t, pretty.Diff(test.want, res), "stmt: %s", test.stmt)+ require.Equal(t, test.want, res, test.stmt)}}@@ -259,13 +258,7 @@ func TestPGRenameConstraintStmt(t *testing.T) {},}- p := &PostgreSQLParser{}-- for _, test := range tests {- res, err := p.Parse(parser.Context{}, test.stmt)- require.NoError(t, err)- require.Nilf(t, pretty.Diff(test.want, res), "stmt: %s", test.stmt)- }+ runTests(t, tests)}func TestPGDropConstraintStmt(t *testing.T) {