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