(path string)
| 57 | } |
| 58 | |
| 59 | func (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 | |
| 71 | func (c *dirWalkerWalkTestCase) setupPaths(t *testing.T, parentPath string) error { |
| 72 | c.parentPath = parentPath |