(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func TestMigrationFromFilePath(t *testing.T) { |
| 10 | migration, err := MigrationFromFilePath("./test-migrations/saas/2019-01-01 0900 Create Users.sql") |
| 11 | if err != nil { |
| 12 | t.Error(err) |
| 13 | } |
| 14 | expectID(t, migration, "2019-01-01 0900 Create Users") |
| 15 | expectScriptMatch(t, migration, `^CREATE TABLE users`) |
| 16 | } |
| 17 | |
| 18 | func TestMigrationFromFilePathWithInvalidPath(t *testing.T) { |
| 19 | _, err := MigrationFromFilePath("./test-migrations/saas/nonexistent-file.sql") |
nothing calls this directly
no test coverage detected
searching dependent graphs…