fork/gdu
git clone https://git.julia.blue/fork/gdu
9ca5c60
ignore
1//go:build !windows && !linux && !darwin 2 3package remove 4 5import ( 6"os" 7"path/filepath" 8"testing" 9 10"github.com/stretchr/testify/require" 11) 12 13func TestRenameNoReplacePropagatesLstatErrors (t * testing.T ) { 14root := t .TempDir () 15loop := filepath .Join (root ,"loop" ) 16require .NoError (t ,os .Symlink ("loop" ,loop )) 17 18err := renameNoReplace (filepath .Join (root ,"source" ),filepath .Join (loop ,"destination" )) 19 20require .Error (t ,err ) 21}