mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 21:33:42 +00:00
16 lines
324 B
Go
16 lines
324 B
Go
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")
|
|
}
|
|
}
|