kubernetes/pkg/controller/volume/persistentvolume/index_test.go

func makePVC(size string, modfn func(*v1.PersistentVolumeClaim)) *v1.PersistentVolumeClaim {}

func makeVolumeModePVC(size string, mode *v1.PersistentVolumeMode, modfn func(*v1.PersistentVolumeClaim)) *v1.PersistentVolumeClaim {}

func TestMatchVolume(t *testing.T) {}

func TestMatchingWithBoundVolumes(t *testing.T) {}

func TestListByAccessModes(t *testing.T) {}

func TestAllPossibleAccessModes(t *testing.T) {}

func TestFindingVolumeWithDifferentAccessModes(t *testing.T) {}

// createVolumeNodeAffinity returns a VolumeNodeAffinity for given key and value.
func createNodeAffinity(key string, value string) *v1.VolumeNodeAffinity {}

func createTestVolumes() []*v1.PersistentVolume {}

func testVolume(name, size string) *v1.PersistentVolume {}

func createVolumeModeBlockTestVolume() *v1.PersistentVolume {}

func createVolumeModeFilesystemTestVolume() *v1.PersistentVolume {}

func createVolumeModeNilTestVolume() *v1.PersistentVolume {}

func createTestVolOrderedIndex(pv *v1.PersistentVolume) persistentVolumeOrderedIndex {}

func TestVolumeModeCheck(t *testing.T) {}

func TestFilteringVolumeModes(t *testing.T) {}

func TestStorageObjectInUseProtectionFiltering(t *testing.T) {}

func TestFindingPreboundVolumes(t *testing.T) {}

func TestBestMatchDelayed(t *testing.T) {}

func TestCheckAccessModes(t *testing.T) {}

type byCapacity

func (c byCapacity) Less(i, j int) bool {}

func (c byCapacity) Swap(i, j int) {}

func (c byCapacity) Len() int {}

// matchStorageCapacity is a matchPredicate used to sort and find volumes
func matchStorageCapacity(pvA, pvB *v1.PersistentVolume) bool {}