didUnmount, err := mounter.Unmount("fake-device-path") // Outputs Expect(didUnmount).To(BeTrue()) Expect(err).To(Equal(delegateErr)) // Inputs Expect(delegateMounter.UnmountPartitionPathOrMountPoint).To(Equal("fake-device-path")) }) }) Describe("IsMountPoint", func() { It("delegates to mounter", func() { delegateMounter.IsMountPointErr = delegateErr delegateMounter.IsMountPointResult = true delegateMounter.IsMountPointPartitionPath = "fake-partition-path" partitionPath, isMountPoint, err := mounter.IsMountPoint("fake-device-path") // Outputs Expect(partitionPath).To(Equal("fake-partition-path")) Expect(isMountPoint).To(BeTrue()) Expect(err).To(Equal(delegateErr)) // Inputs Expect(delegateMounter.IsMountPointPath).To(Equal("fake-device-path")) }) }) Describe("IsMounted", func() { It("delegates to mounter", func() {