Tests for the shipped data layer, New options and concurrent Fake

This commit is contained in:
2026-09-01 23:03:53 +02:00
parent cf9de21495
commit 91cbae2a44
10 changed files with 201 additions and 55 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ func TestNewLoadsAnyDirName(t *testing.T) {
}
func TestNewEmptyDirErrors(t *testing.T) {
if _, err := New([]string{writeData(t, nil)}); err == nil {
if _, err := New(WithoutShippedData(), WithDataPath(writeData(t, nil))); err == nil {
t.Fatal("New(empty dir) = nil error")
}
}