fork/gdu

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

bingoohuangfeat: add --archive-browsing flag to show zip/jar files as dirs, add --collapse-path flag to for collapsing single-child directory chains (#434)516c421

master
502 B18 linesraw
1package testdev
2
3import "github.com/dundee/gdu/v5/pkg/device"
4
5// DevicesInfoGetterMock is mock of DevicesInfoGetter
6type DevicesInfoGetterMock struct {
7	Devices device.Devices
8}
9
10// GetDevicesInfo returns mocked devices
11func (t DevicesInfoGetterMock) GetDevicesInfo() (devices device.Devices, err error) {
12	return t.Devices, nil
13}
14
15// GetMounts returns all mounted filesystems from /proc/mounts
16func (t DevicesInfoGetterMock) GetMounts() (devices device.Devices, err error) {
17	return t.Devices, nil
18}