Skip to content

Commit

Permalink
Add testcase for otiai10#32
Browse files Browse the repository at this point in the history
  • Loading branch information
ob committed Dec 8, 2020
1 parent c5f0361 commit 4fac0d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions all_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,11 @@ func TestCopy(t *testing.T) {
err = Copy("testdata/case08", "testdata.copy/case08", opt)
Expect(t, err).ToBe(nil)
})

When(t, "Multiple levels of symlinks", func(t *testing.T) {
opt := Options{OnSymlink: func(string) SymlinkAction { return Deep }}
err = Copy("testdata/case09", "testdata.copy/case09", opt)
Expect(t, err).ToBe(nil)

})
}

0 comments on commit 4fac0d6

Please sign in to comment.