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

Function containsChild

pkg/devspace/config/loader/patch/operation.go:141–150  ·  view source on GitHub ↗
(child *yaml.Node)

Source from the content-addressed store, hash-verified

139}
140
141func containsChild(child *yaml.Node) func(*yaml.Node) bool {
142 return func(node *yaml.Node) bool {
143 for _, c := range node.Content {
144 if c == child {
145 return true
146 }
147 }
148 return false
149 }
150}
151
152func childIndex(children []*yaml.Node, child *yaml.Node) int {
153 for p, v := range children {

Callers 1

PerformMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected