MCPcopy Create free account
hub / github.com/devspace-sh/devspace / getParentPath

Method getParentPath

pkg/devspace/config/loader/patch/path.go:45–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func (p *OpPath) getParentPath() string {
46 path := string(*p)
47 if endsWithBracketExp.MatchString(path) {
48 return endsWithBracketExp.ReplaceAllString(path, "")
49 }
50
51 tokens := strings.Split(path, ".")
52 return strings.Join(tokens[0:len(tokens)-1], ".")
53}

Callers 3

TestGetParentPathFunction · 0.80
PerformMethod · 0.80
getParentsFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestGetParentPathFunction · 0.64