MCPcopy
hub / github.com/BishopFox/jsluice / ChildCount

Method ChildCount

tree.go:96–101  ·  view source on GitHub ↗

ChildCount returns the number of children a node has

()

Source from the content-addressed store, hash-verified

94
95// ChildCount returns the number of children a node has
96func (n *Node) ChildCount() int {
97 if !n.IsValid() {
98 return 0
99 }
100 return int(n.node.ChildCount())
101}
102
103// NamedChildCount returns the number of named children a Node has.
104func (n *Node) NamedChildCount() int {

Callers 2

ChildrenMethod · 0.95
getTreeFunction · 0.80

Calls 1

IsValidMethod · 0.95

Tested by

no test coverage detected