fork/gdu

git clone https://git.julia.blue/fork/gdu

Daniel Mildefeat: add --trash-command option (#652)b279b41

master
366 B19 linesraw
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) {
14	dir := &analyze.Dir{File: &analyze.File{Name: "test_dir"}}
15	file := &analyze.File{Name: "file", Parent: dir}
16
17	err := TrashCommand("rm -rf")(dir, file)
18	assert.Error(t, err)
19}