func testPlugin(h *harness.Harness) (*flexVolumeAttachablePlugin, string) { … } func assertDriverCall(t *harness.Harness, output exectesting.FakeAction, expectedCommand string, expectedArgs ...string) exectesting.FakeCommandAction { … } func fakeRunner(fakeCommands ...exectesting.FakeCommandAction) exec.Interface { … } func fakeResultOutput(result interface{ … } func successOutput() exectesting.FakeAction { … } func notSupportedOutput() exectesting.FakeAction { … } func sameArgs(args, expectedArgs []string) bool { … } func fakeVolumeSpec() *volume.Spec { … } func specJSON(plugin *flexVolumeAttachablePlugin, spec *volume.Spec, extraOptions map[string]string) string { … }