type fakeMounter … // GetMountRefs finds all mount references to the path, returns a // list of paths. func (f *fakeMounter) GetMountRefs(pathname string) ([]string, error) { … } func TestDeviceNameFromMount(t *testing.T) { … } func createSocketFile(socketDir string) (string, error) { … } func TestGetFileType(t *testing.T) { … } func isOperationNotPermittedError(err error) bool { … }