Skip to content

Commit f444b73

Browse files
committed
polyfill: Add support for Chmod
This is a follow-up to #171. Signed-off-by: Paulo Gomes <pjbgf@linux.com>
1 parent 3a6e195 commit f444b73

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

helper/polyfill/polyfill_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ func TestChroot(t *testing.T) {
4646
assert.ErrorIs(t, err, billy.ErrNotSupported)
4747
}
4848

49+
func TestChmod(t *testing.T) {
50+
ch, ok := helper.(billy.Chmod)
51+
assert.True(t, ok)
52+
53+
err := ch.Chmod("", 0o444)
54+
assert.ErrorIs(t, err, billy.ErrNotSupported)
55+
}
56+
4957
func TestRoot(t *testing.T) {
5058
assert.Equal(t, string(filepath.Separator), helper.Root())
5159
}

0 commit comments

Comments
 (0)