fork/gdu
git clone https://git.julia.blue/fork/gdu
b279b41
master
1//go:build windows 2 3package remove 4 5import ( 6"testing" 7 8"github.com/stretchr/testify/assert" 9 10"github.com/dundee/gdu/v5/pkg/analyze" 11) 12 13func TestTrashCommandNotSupported (t * testing.T ) { 14dir := & analyze.Dir {File :& analyze.File {Name :"test_dir" }} 15file := & analyze.File {Name :"file" ,Parent :dir } 16 17err := TrashCommand ("rm -rf" )(dir ,file ) 18assert .Error (t ,err ) 19}