(t *testing.T)
| 68 | ` |
| 69 | |
| 70 | func 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 | |
| 85 | func TestRemovePsqlMetaCommands(t *testing.T) { |
| 86 | if diff := cmp.Diff(outputPsqlMeta, RemovePsqlMetaCommands(inputPsqlMeta)); diff != "" { |
nothing calls this directly
no test coverage detected