go/src/path/filepath/path_test.go

type PathTest

var cleantests

var nonwincleantests

var wincleantests

func TestClean(t *testing.T) {}

type IsLocalTest

var islocaltests

var winislocaltests

var plan9islocaltests

func TestIsLocal(t *testing.T) {}

type LocalizeTest

var localizetests

var plan9localizetests

var unixlocalizetests

var winlocalizetests

func TestLocalize(t *testing.T) {}

const sep

var slashtests

func TestFromAndToSlash(t *testing.T) {}

type SplitListTest

const lsep

var splitlisttests

var winsplitlisttests

func TestSplitList(t *testing.T) {}

type SplitTest

var unixsplittests

var winsplittests

func TestSplit(t *testing.T) {}

type JoinTest

var jointests

var nonwinjointests

var winjointests

func TestJoin(t *testing.T) {}

type ExtTest

var exttests

func TestExt(t *testing.T) {}

type Node

var tree

func walkTree(n *Node, path string, f func(path string, n *Node)) {}

func makeTree(t *testing.T) {}

func markTree(n *Node) {}

func checkMarks(t *testing.T, report bool) {}

// Assumes that each node name is unique. Good enough for a test.
// If clear is true, any incoming error is cleared before return. The errors
// are always accumulated, though.
func mark(d fs.DirEntry, err error, errors *[]error, clear bool) error {}

// tempDirCanonical returns a temporary directory for the test to use, ensuring
// that the returned path does not contain symlinks.
func tempDirCanonical(t *testing.T) string {}

func TestWalk(t *testing.T) {}

func TestWalkDir(t *testing.T) {}

func testWalk(t *testing.T, walk func(string, fs.WalkDirFunc) error, errVisit int) {}

func touch(t *testing.T, name string) {}

func TestWalkSkipDirOnFile(t *testing.T) {}

func TestWalkSkipAllOnFile(t *testing.T) {}

func TestWalkFileError(t *testing.T) {}

func TestWalkSymlinkRoot(t *testing.T) {}

var basetests

var winbasetests

func TestBase(t *testing.T) {}

var dirtests

var nonwindirtests

var windirtests

func TestDir(t *testing.T) {}

type IsAbsTest

var isabstests

var winisabstests

func TestIsAbs(t *testing.T) {}

type EvalSymlinksTest

var EvalSymlinksTestDirs

var EvalSymlinksTests

// simpleJoin builds a file name from the directory and path.
// It does not use Join because we don't want ".." to be evaluated.
func simpleJoin(dir, path string) string {}

func testEvalSymlinks(t *testing.T, path, want string) {}

func testEvalSymlinksAfterChdir(t *testing.T, wd, path, want string) {}

func TestEvalSymlinks(t *testing.T) {}

func TestEvalSymlinksIsNotExist(t *testing.T) {}

func TestIssue13582(t *testing.T) {}

// Issue 57905.
func TestRelativeSymlinkToAbsolute(t *testing.T) {}

var absTestDirs

var absTests

func TestAbs(t *testing.T) {}

// Empty path needs to be special-cased on Windows. See golang.org/issue/24441.
// We test it separately from all other absTests because the empty string is not
// a valid path, so it can't be used with os.Stat.
func TestAbsEmptyString(t *testing.T) {}

type RelTests

var reltests

var winreltests

func TestRel(t *testing.T) {}

type VolumeNameTest

var volumenametests

func TestVolumeName(t *testing.T) {}

func TestDriveLetterInEvalSymlinks(t *testing.T) {}

func TestBug3486(t *testing.T) {}

func testWalkSymlink(t *testing.T, mklink func(target, link string) error) {}

func TestWalkSymlink(t *testing.T) {}

func TestIssue29372(t *testing.T) {}

// Issue 30520 part 1.
func TestEvalSymlinksAboveRoot(t *testing.T) {}

// Issue 30520 part 2.
func TestEvalSymlinksAboveRootChdir(t *testing.T) {}

func TestIssue51617(t *testing.T) {}

func TestEscaping(t *testing.T) {}

func TestEvalSymlinksTooManyLinks(t *testing.T) {}