MCPcopy
hub / github.com/git-lfs/git-lfs / prependParentPath

Method prependParentPath

tools/dir_walker_test.go:59–69  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

57}
58
59func (c *dirWalkerWalkTestCase) prependParentPath(path string) string {
60 if path == "" {
61 return c.parentPath
62 } else if c.parentPath == "" {
63 return path
64 } else if path[0] == '/' {
65 return "/" + c.parentPath + path
66 } else {
67 return c.parentPath + "/" + path
68 }
69}
70
71func (c *dirWalkerWalkTestCase) setupPaths(t *testing.T, parentPath string) error {
72 c.parentPath = parentPath

Callers 1

setupPathsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected