MCPcopy
hub / github.com/grafana/tempo / countNodes

Function countNodes

pkg/drain/drain_test.go:43–49  ·  view source on GitHub ↗
(node *Node)

Source from the content-addressed store, hash-verified

41}
42
43func countNodes(node *Node) int {
44 total := 1
45 for _, child := range node.keyToChildNode {
46 total += countNodes(child)
47 }
48 return total
49}
50
51func TestDrain_Train_BasicPatternDetection(t *testing.T) {
52 t.Parallel()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected