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

Method GetNextLeaf

pkg/devspace/dependency/graph/graph.go:112–118  ·  view source on GitHub ↗

GetNextLeaf returns the next leaf in the graph from node start

(start *Node)

Source from the content-addressed store, hash-verified

110
111// GetNextLeaf returns the next leaf in the graph from node start
112func (g *Graph) GetNextLeaf(start *Node) *Node {
113 if len(start.Childs) == 0 {
114 return start
115 }
116
117 return g.GetNextLeaf(start.Childs[0])
118}
119
120// CyclicError is the type that is returned if a cyclic edge would be inserted
121type CyclicError struct {

Callers 2

TestGraphFunction · 0.80
orderVariablesMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestGraphFunction · 0.64