(name)
| 29 | this.visits[name]++; |
| 30 | } |
| 31 | pop(name) { |
| 32 | if (hop(this.events, name) && this.events[name].length > 0) { |
| 33 | const start = this.events[name].shift(); |
| 34 | const delta = this.diff(start); |
| 35 | |
| 36 | if (!hop(this.results, name)) { |
| 37 | this.results[name] = { |
| 38 | aggregate: 0, |
| 39 | values: [] |
| 40 | }; |
| 41 | } |
| 42 | |
| 43 | this.results[name].aggregate += delta; |
| 44 | this.results[name].values.push(delta); |
| 45 | } |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | run(process.argv[2]); |
no test coverage detected