Debian Codegraph @

tools/dir_walker_test.go

raw symbols SCIP
1 package toolsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/
2
3 import (
4 "errorsscip-go gomod github.com/golang/go/src go1.25.0 errors/"
5 "fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/"
6 "osscip-go gomod github.com/golang/go/src go1.25.0 os/"
7 "testingscip-go gomod github.com/golang/go/src go1.25.0 testing/"
8
9 "github.com/stretchr/testify/assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/"
10 "github.com/stretchr/testify/requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/"
11 )
12
13 type newDirWalkerForFileTestCasescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/newDirWalkerForFileTestCase# struct {
14 filePathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/newDirWalkerForFileTestCase#filePath. string
15 expectedDirPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/newDirWalkerForFileTestCase#expectedDirPath. string
16 }
17
18 func (c *newDirWalkerForFileTestCasescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/newDirWalkerForFileTestCase#) Assertscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/newDirWalkerForFileTestCase#Assert().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
19 w := NewDirWalkerForFilescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/NewDirWalkerForFile().("", c.filePathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/newDirWalkerForFileTestCase#filePath., nil)
20 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, c.expectedDirPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/newDirWalkerForFileTestCase#expectedDirPath., w.pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/DirWalker#path.)
21 }
22
23 func TestNewDirWalkerForFilescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestNewDirWalkerForFile().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
24 for desc, c := range map[string]*newDirWalkerForFileTestCasescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/newDirWalkerForFileTestCase#{
25 "filename only": {"foo.bin", ""},
26 "path with one dir": {"abc/foo.bin", "abc"},
27 "path with two dirs": {"abc/def/foo.bin", "abc/def"},
28 "path with leading slash": {"/foo.bin", ""},
29 "path with trailing slash": {"abc/", "abc"},
30 "bare slash": {"/", ""},
31 "empty path": {"", ""},
32 } {
33 t.Runscip-go gomod github.com/golang/go/src go1.25.0 testing/T#Run().(desc, c.Assertscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/newDirWalkerForFileTestCase#Assert().)
34 }
35 }
36
37 type dirWalkerTestConfigscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerTestConfig# struct{}
38
39 func (c *dirWalkerTestConfigscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerTestConfig#) RepositoryPermissionsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerTestConfig#RepositoryPermissions().(executable bool) osscip-go gomod github.com/golang/go/src go1.25.0 os/.FileModescip-go gomod github.com/golang/go/src go1.25.0 os/FileMode# {
40 return osscip-go gomod github.com/golang/go/src go1.25.0 os/.FileModescip-go gomod github.com/golang/go/src go1.25.0 os/FileMode#(0755)
41 }
42
43 type dirWalkerWalkTestCasescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase# struct {
44 parentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#parentPath. string
45 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path. string
46 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create. bool
47
48 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath. string
49 existsFilescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsFile. string
50 existsLinkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsLink. string
51
52 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath. string
53 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath. string
54 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr. error
55
56 walkerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#walker. *DirWalkerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/DirWalker#
57 }
58
59 func (c *dirWalkerWalkTestCasescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#) prependParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#prependParentPath().(path string) string {
60 if path == "" {
61 return c.parentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#parentPath.
62 } else if c.parentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#parentPath. == "" {
63 return path
64 } else if path[0] == '/' {
65 return "/" + c.parentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#parentPath. + path
66 } else {
67 return c.parentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#parentPath. + "/" + path
68 }
69 }
70
71 func (c *dirWalkerWalkTestCasescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#) setupPathsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#setupPaths().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#, parentPath string) error {
72 c.parentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#parentPath. = parentPath
73
74 if parentPath != "" {
75 if err := osscip-go gomod github.com/golang/go/src go1.25.0 os/.MkdirAllscip-go gomod github.com/golang/go/src go1.25.0 os/MkdirAll().(parentPath, 0755); err != nil {
76 return fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.25.0 fmt/Errorf().("unable to create path: %w", err)
77 }
78 }
79
80 if c.existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath. != "" {
81 c.existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath. = c.prependParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#prependParentPath().(c.existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.)
82 if err := osscip-go gomod github.com/golang/go/src go1.25.0 os/.MkdirAllscip-go gomod github.com/golang/go/src go1.25.0 os/MkdirAll().(c.existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath., 0755); err != nil {
83 return fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.25.0 fmt/Errorf().("unable to create path: %w", err)
84 }
85 }
86
87 if c.existsFilescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsFile. != "" {
88 c.existsFilescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsFile. = c.prependParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#prependParentPath().(c.existsFilescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsFile.)
89 f, err := osscip-go gomod github.com/golang/go/src go1.25.0 os/.Createscip-go gomod github.com/golang/go/src go1.25.0 os/Create().(c.existsFilescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsFile.)
90 if err != nil {
91 return fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.25.0 fmt/Errorf().("unable to create file: %w", err)
92 }
93 f.Closescip-go gomod github.com/golang/go/src go1.25.0 os/File#Close().()
94 }
95
96 if c.existsLinkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsLink. != "" {
97 c.existsLinkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsLink. = c.prependParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#prependParentPath().(c.existsLinkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsLink.)
98 if err := osscip-go gomod github.com/golang/go/src go1.25.0 os/.Symlinkscip-go gomod github.com/golang/go/src go1.25.0 os/Symlink().(t.TempDirscip-go gomod github.com/golang/go/src go1.25.0 testing/common#TempDir().(), c.existsLinkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsLink.); err != nil {
99 return fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.25.0 fmt/Errorf().("unable to create symbolic link: %w", err)
100 }
101 }
102
103 c.expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath. = c.prependParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#prependParentPath().(c.expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.)
104
105 return nil
106 }
107
108 func (c *dirWalkerWalkTestCasescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#) Assertscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#Assert().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
109 c.walkerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#walker..parentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/DirWalker#parentPath. = c.parentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#parentPath.
110 c.walkerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#walker..pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/DirWalker#path. = c.pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.
111
112 err := c.walkerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#walker..walkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/DirWalker#walk().(c.createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.)
113
114 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, c.expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath., c.walkerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#walker..parentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/DirWalker#parentPath., "found path does not match")
115 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Equalscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Equal().(t, c.expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath., c.walkerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#walker..pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/DirWalker#path., "missing path does not match")
116 if c.expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr. == nil {
117 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.NoErrorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/NoError().(t, err)
118 } else {
119 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Errorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/Error().(t, err)
120 assertscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/.Truescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/assert`/True().(t, errorsscip-go gomod github.com/golang/go/src go1.25.0 errors/.Isscip-go gomod github.com/golang/go/src go1.25.0 errors/Is().(err, c.expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.), "wrong error type")
121 }
122 }
123
124 func TestDirWalkerWalkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/TestDirWalkerWalk().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
125 wd, err := osscip-go gomod github.com/golang/go/src go1.25.0 os/.Getwdscip-go gomod github.com/golang/go/src go1.25.0 os/Getwd().()
126 requirescip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/.NoErrorscip-go gomod github.com/stretchr/testify v1.11.1 `github.com/stretchr/testify/require`/NoError().(t, err)
127
128 defer osscip-go gomod github.com/golang/go/src go1.25.0 os/.Chdirscip-go gomod github.com/golang/go/src go1.25.0 os/Chdir().(wd)
129
130 for desc, c := range map[string]*dirWalkerWalkTestCasescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#{
131 "empty path": {},
132 "one extant dir": {
133 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc",
134 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
135 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
136 },
137 "one missing dir": {
138 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc",
139 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "abc",
140 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: osscip-go gomod github.com/golang/go/src go1.25.0 os/.ErrNotExistscip-go gomod github.com/golang/go/src go1.25.0 os/ErrNotExist.,
141 },
142 "two extant dirs": {
143 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def",
144 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc/def",
145 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def",
146 },
147 "two missing dirs": {
148 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def",
149 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "abc/def",
150 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: osscip-go gomod github.com/golang/go/src go1.25.0 os/.ErrNotExistscip-go gomod github.com/golang/go/src go1.25.0 os/ErrNotExist.,
151 },
152 "three extant dirs": {
153 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
154 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc/def/ghi",
155 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def/ghi",
156 },
157 "three missing dirs": {
158 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
159 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "abc/def/ghi",
160 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: osscip-go gomod github.com/golang/go/src go1.25.0 os/.ErrNotExistscip-go gomod github.com/golang/go/src go1.25.0 os/ErrNotExist.,
161 },
162 "one extant dir and one missing dir": {
163 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def",
164 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
165 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
166 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "def",
167 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: osscip-go gomod github.com/golang/go/src go1.25.0 os/.ErrNotExistscip-go gomod github.com/golang/go/src go1.25.0 os/ErrNotExist.,
168 },
169 "one extant dir and two missing dirs": {
170 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
171 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
172 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
173 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "def/ghi",
174 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: osscip-go gomod github.com/golang/go/src go1.25.0 os/.ErrNotExistscip-go gomod github.com/golang/go/src go1.25.0 os/ErrNotExist.,
175 },
176 "two extant dirs and one missing dir": {
177 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
178 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc/def",
179 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def",
180 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "ghi",
181 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: osscip-go gomod github.com/golang/go/src go1.25.0 os/.ErrNotExistscip-go gomod github.com/golang/go/src go1.25.0 os/ErrNotExist.,
182 },
183 "one missing dir with trailing slash": {
184 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/",
185 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "abc/",
186 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: osscip-go gomod github.com/golang/go/src go1.25.0 os/.ErrNotExistscip-go gomod github.com/golang/go/src go1.25.0 os/ErrNotExist.,
187 },
188 "one extant dir with trailing slash": {
189 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/",
190 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
191 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
192 },
193 "two extant dirs with trailing slash": {
194 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/",
195 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc/def",
196 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def",
197 },
198 "one extant dir and one missing dir with trailing slash": {
199 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/",
200 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
201 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
202 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "def/",
203 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: osscip-go gomod github.com/golang/go/src go1.25.0 os/.ErrNotExistscip-go gomod github.com/golang/go/src go1.25.0 os/ErrNotExist.,
204 },
205 "one conflicting file": {
206 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc",
207 existsFilescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsFile.: "abc",
208 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "abc",
209 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
210 },
211 "one extant dir and one conflicting file": {
212 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def",
213 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
214 existsFilescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsFile.: "abc/def",
215 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
216 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "def",
217 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
218 },
219 "two extant dirs and one conflicting file": {
220 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
221 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc/def",
222 existsFilescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsFile.: "abc/def/ghi",
223 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def",
224 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "ghi",
225 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
226 },
227 "one extant dir, one conflicting file, and one missing dir": {
228 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
229 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
230 existsFilescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsFile.: "abc/def",
231 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
232 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "def/ghi",
233 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
234 },
235 "one conflicting symlink": {
236 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc",
237 existsLinkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsLink.: "abc",
238 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "abc",
239 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
240 },
241 "one extant dir and one conflicting symlink": {
242 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def",
243 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
244 existsLinkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsLink.: "abc/def",
245 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
246 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "def",
247 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
248 },
249 "two extant dirs and one conflicting symlink": {
250 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
251 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc/def",
252 existsLinkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsLink.: "abc/def/ghi",
253 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def",
254 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "ghi",
255 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
256 },
257 "one extant dir, one conflicting symlink, and one missing dir": {
258 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
259 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
260 existsLinkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsLink.: "abc/def",
261 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
262 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "def/ghi",
263 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
264 },
265 "one extant dir (not modified)": {
266 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc",
267 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
268 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
269 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
270 },
271 "one created dir": {
272 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc",
273 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
274 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
275 },
276 "two extant dirs (not modified)": {
277 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def",
278 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
279 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc/def",
280 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def",
281 },
282 "two created dirs": {
283 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def",
284 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
285 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def",
286 },
287 "three extant dirs (not modified)": {
288 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
289 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
290 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc/def/ghi",
291 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def/ghi",
292 },
293 "three created dirs": {
294 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
295 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
296 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def/ghi",
297 },
298 "one extant dir and one created dir": {
299 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def",
300 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
301 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
302 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def",
303 },
304 "one extant dir and two created dirs": {
305 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
306 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
307 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
308 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def/ghi",
309 },
310 "two extant dirs and one created dir": {
311 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
312 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
313 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc/def",
314 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def/ghi",
315 },
316 "one created dir with trailing slash": {
317 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/",
318 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
319 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
320 },
321 "one extant dir with trailing slash (not modified)": {
322 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/",
323 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
324 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
325 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
326 },
327 "two extant dirs with trailing slash (not modified)": {
328 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/",
329 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
330 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc/def",
331 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def",
332 },
333 "one extant dir and one created dir with trailing slash": {
334 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/",
335 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
336 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
337 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def",
338 },
339 "one conflicting file (not modified)": {
340 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc",
341 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
342 existsFilescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsFile.: "abc",
343 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "abc",
344 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
345 },
346 "one extant dir and one conflicting file (not modified)": {
347 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def",
348 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
349 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
350 existsFilescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsFile.: "abc/def",
351 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
352 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "def",
353 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
354 },
355 "two extant dirs and one conflicting file (not modified)": {
356 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
357 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
358 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc/def",
359 existsFilescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsFile.: "abc/def/ghi",
360 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def",
361 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "ghi",
362 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
363 },
364 "one extant dir, one conflicting file, and one missing dir (not modified)": {
365 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
366 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
367 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
368 existsFilescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsFile.: "abc/def",
369 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
370 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "def/ghi",
371 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
372 },
373 "one conflicting symlink (not modified)": {
374 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc",
375 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
376 existsLinkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsLink.: "abc",
377 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "abc",
378 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
379 },
380 "one extant dir and one conflicting symlink (not modified)": {
381 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def",
382 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
383 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
384 existsLinkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsLink.: "abc/def",
385 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
386 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "def",
387 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
388 },
389 "two extant dirs and one conflicting symlink (not modified)": {
390 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
391 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
392 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc/def",
393 existsLinkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsLink.: "abc/def/ghi",
394 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc/def",
395 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "ghi",
396 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
397 },
398 "one extant dir, one conflicting symlink, and one missing dir (not modified)": {
399 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/def/ghi",
400 createscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#create.: true,
401 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
402 existsLinkscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsLink.: "abc/def",
403 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
404 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "def/ghi",
405 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errNotDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errNotDir.,
406 },
407 "invalid bare slash": {
408 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "/",
409 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "/",
410 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errInvalidDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errInvalidDir.,
411 },
412 "invalid multiple slashes": {
413 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc//def",
414 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
415 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
416 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "/def",
417 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errInvalidDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errInvalidDir.,
418 },
419 "invalid leading slash": {
420 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "/abc",
421 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
422 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "/abc",
423 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errInvalidDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errInvalidDir.,
424 },
425 "invalid bare dot component": {
426 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: ".",
427 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: ".",
428 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errInvalidDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errInvalidDir.,
429 },
430 "invalid dot component": {
431 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/./def",
432 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc/def",
433 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
434 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "./def",
435 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errInvalidDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errInvalidDir.,
436 },
437 "invalid bare double-dot component": {
438 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "..",
439 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "..",
440 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errInvalidDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errInvalidDir.,
441 },
442 "invalid double-dot component": {
443 pathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#path.: "abc/../def",
444 existsPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#existsPath.: "abc",
445 expectedParentPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedParentPath.: "abc",
446 expectedPathscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedPath.: "../def",
447 expectedErrscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#expectedErr.: errInvalidDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/errInvalidDir.,
448 },
449 } {
450 if err := osscip-go gomod github.com/golang/go/src go1.25.0 os/.Chdirscip-go gomod github.com/golang/go/src go1.25.0 os/Chdir().(t.TempDirscip-go gomod github.com/golang/go/src go1.25.0 testing/common#TempDir().()); err != nil {
451 t.Errorfscip-go gomod github.com/golang/go/src go1.25.0 testing/common#Errorf().("unable to change directory: %s", err)
452 }
453
454 c.walkerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#walker. = &DirWalkerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/DirWalker#{
455 configscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/DirWalker#config.: &dirWalkerTestConfigscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerTestConfig#{},
456 }
457
458 if err := c.setupPathsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#setupPaths().(t, ""); err != nil {
459 t.Errorscip-go gomod github.com/golang/go/src go1.25.0 testing/common#Error().(err)
460 continue
461 }
462
463 t.Runscip-go gomod github.com/golang/go/src go1.25.0 testing/T#Run().(desc, c.Assertscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#Assert().)
464
465 // retest with parent path; note that this alters the test case
466 if err := c.setupPathsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#setupPaths().(t, "foo/bar"); err != nil {
467 t.Errorscip-go gomod github.com/golang/go/src go1.25.0 testing/common#Error().(err)
468 continue
469 }
470
471 t.Runscip-go gomod github.com/golang/go/src go1.25.0 testing/T#Run().(desc+" with parent path", c.Assertscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/dirWalkerWalkTestCase#Assert().)
472 }
473 }