type fakeFileInfo … func (fi *fakeFileInfo) Name() string { … } func (fi *fakeFileInfo) Size() int64 { … } func (fi *fakeFileInfo) Mode() os.FileMode { … } func (fi *fakeFileInfo) ModTime() time.Time { … } func (fi *fakeFileInfo) IsDir() bool { … } func (fi *fakeFileInfo) Sys() interface{ … } type fakeIOHandler … func (handler *fakeIOHandler) ReadDir(dirname string) ([]os.FileInfo, error) { … } func (handler *fakeIOHandler) Lstat(name string) (os.FileInfo, error) { … } func (handler *fakeIOHandler) EvalSymlinks(path string) (string, error) { … } func (handler *fakeIOHandler) WriteFile(filename string, data []byte, perm os.FileMode) error { … } func TestSearchDisk(t *testing.T) { … } func TestSearchDiskWWID(t *testing.T) { … } func TestParsePDName(t *testing.T) { … }