MCPcopy Create free account
hub / github.com/adlio/schema / TestApplyConnFailure

Function TestApplyConnFailure

errors_test.go:63–70  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

61 }
62}
63func 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
72func TestApplyLockFailure(t *testing.T) {
73 migrator := NewMigrator()

Callers

nothing calls this directly

Calls 2

ApplyMethod · 0.95
testMigrationsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…