MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / TestRemoveRollback

Function TestRemoveRollback

internal/migrations/migrations_test.go:70–83  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

68`
69
70func TestRemoveRollback(t *testing.T) {
71 if diff := cmp.Diff(outputGoose, RemoveRollbackStatements(inputGoose)); diff != "" {
72 t.Errorf("goose migration mismatch:\n%s", diff)
73 }
74 if diff := cmp.Diff(outputMigrate, RemoveRollbackStatements(inputMigrate)); diff != "" {
75 t.Errorf("sql-migrate migration mismatch:\n%s", diff)
76 }
77 if diff := cmp.Diff(outputTern, RemoveRollbackStatements(inputTern)); diff != "" {
78 t.Errorf("tern migration mismatch:\n%s", diff)
79 }
80 if diff := cmp.Diff(outputDbmate, RemoveRollbackStatements(inputDbmate)); diff != "" {
81 t.Errorf("dbmate migration mismatch:\n%s", diff)
82 }
83}
84
85func TestRemovePsqlMetaCommands(t *testing.T) {
86 if diff := cmp.Diff(outputPsqlMeta, RemovePsqlMetaCommands(inputPsqlMeta)); diff != "" {

Callers

nothing calls this directly

Calls 1

RemoveRollbackStatementsFunction · 0.85

Tested by

no test coverage detected