package migrations import ( "context" "testing" ) func TestApplyRejectsMissingDatabaseOrDirectory(t *testing.T) { if err := Apply(context.Background(), nil, "."); err == nil { t.Fatal("nil database accepted") } if err := Apply(context.Background(), nil, ""); err == nil { t.Fatal("empty directory accepted") } }