kubernetes/pkg/volume/util/subpath/subpath_linux_test.go

func TestSafeMakeDir(t *testing.T) {}

func TestRemoveEmptyDirs(t *testing.T) {}

func TestCleanSubPaths(t *testing.T) {}

var testVol

var testPod

var testContainer

var testSubpath

func setupFakeMounter(testMounts []string) *mount.FakeMounter {}

func getTestPaths(base string) (string, string) {}

func TestBindSubPath(t *testing.T) {}

func TestSubpath_PrepareSafeSubpath(t *testing.T) {}

func TestSafeOpen(t *testing.T) {}

func createSocketFile(socketDir string) (string, error) {}

func TestFindExistingPrefix(t *testing.T) {}

func validateDirEmpty(dir string) error {}

func validateDirExists(dir string) error {}

func validateDirNotExists(dir string) error {}

func validateFileExists(file string) error {}