type ErrorMounter … func (mounter *ErrorMounter) Mount(source string, target string, fstype string, options []string) error { … } func (mounter *ErrorMounter) MountSensitive(source string, target string, fstype string, options []string, sensitiveOptions []string) error { … } type ExecArgs … func TestSafeFormatAndMount(t *testing.T) { … } func makeFakeCmd(fakeCmd *testingexec.FakeCmd, cmd string, args ...string) testingexec.FakeCommandAction { … } func makeFakeOutput(output string, err error) testingexec.FakeAction { … }