NewTreeNode creates a new tree node
(name string)
| 25 | |
| 26 | // NewTreeNode creates a new tree node |
| 27 | func NewTreeNode(name string) *TreeNode { |
| 28 | return &TreeNode{ |
| 29 | Name: name, |
| 30 | Children: make(map[string]*TreeNode), |
| 31 | IsLeaf: false, |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | // AddPath adds a path to the tree |
| 36 | func (tn *TreeNode) AddPath(parts []string, result *baseline.Baseline) { |
no outgoing calls
no test coverage detected