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

Commit

Permalink
windows debug
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Sep 17, 2021
1 parent a3bdaee commit a85d0e7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mfs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,24 @@ func TestFilesLs(t *testing.T) {
is.Equal(list[1].Hash, "QmfZt7xPekp7npSM6DHDUnFseAiNZQs7wq6muH9o99RsCB")
}

func TestFilesLs2(t *testing.T) {
is := is.New(t)
s := NewShell(shellUrl)

list, err := s.FilesLs(context.Background(), "/testdata", FilesLs.Stat(true))
is.Nil(err)

for _, e := range list {
t.Logf("ls out: %v", e)
}

is.Equal(len(list), 2)
is.Equal(list[0].Name, "about")
is.Equal(list[0].Hash, "QmUdTMirfB6dXArAZuB8V2QGcSVvRDZNa1XCquG6xR2cGK")
is.Equal(list[1].Name, "readme")
is.Equal(list[1].Hash, "QmfZt7xPekp7npSM6DHDUnFseAiNZQs7wq6muH9o99RsCB")
}

func TestFilesMkdir(t *testing.T) {
is := is.New(t)
s := NewShell(shellUrl)
Expand Down

0 comments on commit a85d0e7

Please sign in to comment.