(box)
| 558 | } |
| 559 | |
| 560 | function details(box) { |
| 561 | // Examples: |
| 562 | // 6s (10%) |
| 563 | // 6s (10%) │ self 3s (5%) |
| 564 | // 6s (10%) │ 12s (20%) 🠆 18s (30%) |
| 565 | let result = percentText(box.sumpos - box.sumneg); |
| 566 | if (box.self != 0) { |
| 567 | result += " │ self " + unitText(box.self); |
| 568 | } |
| 569 | if (diff && box.sumpos > 0 && box.sumneg > 0) { |
| 570 | result += " │ " + diffText(box.sumneg, box.sumpos); |
| 571 | } |
| 572 | return result; |
| 573 | } |
| 574 | |
| 575 | // diffText returns text that displays from and to alongside their percentages. |
| 576 | // E.g., 9s (45%) 🠆 10s (50%) |
no test coverage detected
searching dependent graphs…