github.com/PandaGoAdmin/utils@v0.0.0-20211208134815-d5461603a00f/file_windows_test.go (about) 1 // +build windows 2 3 package kgo 4 5 import ( 6 "github.com/stretchr/testify/assert" 7 "testing" 8 ) 9 10 func TestFileWins_IsReadable_Deny(t *testing.T) { 11 var res bool 12 res = KFile.IsReadable(admDir) 13 assert.False(t, res) 14 } 15 16 func TestFileWins_IsWritable_Deny(t *testing.T) { 17 var res bool 18 res = KFile.IsWritable(admDir) 19 assert.False(t, res) 20 } 21 22 func TestFileWins_IsExecutable_Deny(t *testing.T) { 23 var res bool 24 res = KFile.IsExecutable(admDir) 25 assert.False(t, res) 26 }