Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 13ef8b4

Browse files
committed
windows debug
1 parent a3bdaee commit 13ef8b4

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

mfs_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,22 @@ func TestMain(m *testing.M) {
2828
}
2929
}
3030

31+
stat, err := s.FilesStat(context.Background(), "/testdata")
32+
if err != nil {
33+
fmt.Fprintf(os.Stderr, "Failed to stat test data, not running tests: %v\n", err)
34+
os.Exit(1)
35+
}
36+
fmt.Printf("root stat %+v\n", stat)
37+
38+
mfsEntries, err := s.FilesLs(context.Background(), "/testdata", FilesLs.Stat(true))
39+
if err != nil {
40+
fmt.Fprintf(os.Stderr, "Failed to stat test data, not running tests: %v\n", err)
41+
os.Exit(1)
42+
}
43+
for _, e := range mfsEntries {
44+
fmt.Printf("entry %+v\n", e)
45+
}
46+
3147
exitVal := m.Run()
3248
if err := s.FilesRm(context.Background(), "/testdata", true); err != nil {
3349
fmt.Fprintf(os.Stderr, "Failed to remove test data: %v\n", err)

0 commit comments

Comments
 (0)