todo editor
This commit is contained in:
@@ -126,4 +126,8 @@ func TestMalformedAndUnsafeIDs(t *testing.T) {
|
||||
if _, err := List(dir); err == nil {
|
||||
t.Fatal("malformed file silently ignored")
|
||||
}
|
||||
items, warnings, err := Scan(dir)
|
||||
if err != nil || len(items) != 0 || len(warnings) != 1 {
|
||||
t.Fatalf("scan should report malformed file: %v, %v, %v", items, warnings, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user