func makePluginUnderTest(t *testing.T, plugName, basePath string) volume.VolumePlugin { … }
func TestCanSupport(t *testing.T) { … }
type fakeMountDetector …
func (fake *fakeMountDetector) GetMountMedium(path string, requestedMedium v1.StorageMedium) (v1.StorageMedium, bool, *resource.Quantity, error) { … }
func TestPluginEmptyRootContext(t *testing.T) { … }
func TestPluginHugetlbfs(t *testing.T) { … }
type pluginTestConfig …
func doTestPlugin(t *testing.T, config pluginTestConfig) { … }
func testSetUp(mounter volume.Mounter, metadataDir, volPath string) error { … }
func testTearDown(unmounter volume.Unmounter, metadataDir, volPath string) error { … }
func TestPluginBackCompat(t *testing.T) { … }
func TestMetrics(t *testing.T) { … }
func TestGetHugePagesMountOptions(t *testing.T) { … }
type testMountDetector …
func (md *testMountDetector) GetMountMedium(path string, requestedMedium v1.StorageMedium) (v1.StorageMedium, bool, *resource.Quantity, error) { … }
func TestSetupHugepages(t *testing.T) { … }
func TestGetPageSize(t *testing.T) { … }
func TestCalculateEmptyDirMemorySize(t *testing.T) { … }
func TestTmpfsMountOptions(t *testing.T) { … }