const PortworxTestVolume … func TestCanSupport(t *testing.T) { … } func TestGetAccessModes(t *testing.T) { … } type fakePortworxManager … func (fake *fakePortworxManager) AttachVolume(b *portworxVolumeMounter, attachOptions map[string]string) (string, error) { … } func (fake *fakePortworxManager) DetachVolume(c *portworxVolumeUnmounter) error { … } func (fake *fakePortworxManager) MountVolume(b *portworxVolumeMounter, mountPath string) error { … } func (fake *fakePortworxManager) UnmountVolume(c *portworxVolumeUnmounter, mountPath string) error { … } func (fake *fakePortworxManager) CreateVolume(c *portworxVolumeProvisioner) (volumeID string, volumeSizeGB int64, labels map[string]string, err error) { … } func (fake *fakePortworxManager) DeleteVolume(cd *portworxVolumeDeleter) error { … } func (fake *fakePortworxManager) ResizeVolume(spec *volume.Spec, newSize resource.Quantity, volumeHost volume.VolumeHost) error { … } func TestPlugin(t *testing.T) { … }