fork/gdu
git clone https://git.julia.blue/fork/gdu
da638da
ignore
1//go:build linux 2 3package tui 4 5import ( 6"bytes" 7"testing" 8 9"github.com/dundee/gdu/v5/internal/testapp" 10"github.com/dundee/gdu/v5/pkg/device" 11"github.com/stretchr/testify/assert" 12) 13 14func TestShowDevicesWithError (t * testing.T ) { 15app ,simScreen := testapp .CreateTestAppWithSimScreen (50 ,50 ) 16defer simScreen .Fini () 17 18getter := device.LinuxDevicesInfoGetter {MountsPath :"/xyzxyz" } 19 20ui := CreateUI (app ,simScreen ,& bytes.Buffer {},false ,false ,false ,false ) 21err := ui .ListDevices (getter ) 22 23assert .Contains (t ,err .Error (),"no such file" ) 24}