(t *testing.T)
| 61 | } |
| 62 | } |
| 63 | func TestApplyConnFailure(t *testing.T) { |
| 64 | bd := BadDB{} |
| 65 | migrator := Migrator{} |
| 66 | err := migrator.Apply(bd, testMigrations(t, "useless-ansi")) |
| 67 | if err != ErrConnFailed { |
| 68 | t.Errorf("Expected %v, got %v", ErrConnFailed, err) |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | func TestApplyLockFailure(t *testing.T) { |
| 73 | migrator := NewMigrator() |
nothing calls this directly
no test coverage detected
searching dependent graphs…