Skip to content

Commit

Permalink
TMP: Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Jun 25, 2024
1 parent ac73db1 commit 7bbbcb4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/runfiles/testfs/testfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ func testFS(fsys fs.FS, expected ...string) error {
if len(t.errText) == 0 {
return nil
}
var list []string
for k := range found {
if k != "." {
list = append(list, k)
}
}
sort.Strings(list)
t.errorf("found files:\n%s", strings.Join(list, "\n"))
return errors.New("TestFS found errors:\n" + string(t.errText))
}

Expand Down

0 comments on commit 7bbbcb4

Please sign in to comment.