* Adds the specified call path, constructing nodes as necessary. * * @param {string[]} path Call path.
(path)
| 1046 | * @param {string[]} path Call path. |
| 1047 | */ |
| 1048 | addPath(path) { |
| 1049 | if (path.length == 0) return; |
| 1050 | let curr = this.root_; |
| 1051 | for (let i = 0; i < path.length; ++i) { |
| 1052 | curr = curr.findOrAddChild(path[i]); |
| 1053 | } |
| 1054 | curr.selfWeight++; |
| 1055 | this.totalsComputed_ = false; |
| 1056 | } |
| 1057 | |
| 1058 | /** |
| 1059 | * Finds an immediate child of the specified parent with the specified |
no test coverage detected