(unit, v, expect)
| 111 | |
| 112 | test.run("Units", function() { |
| 113 | function checkUnitText(unit, v, expect) { |
| 114 | const result = pprofUnitText(v, unit); |
| 115 | if (result != expect) { |
| 116 | test.err("bad text for", v, unit, ":", result, "expecting:", expect); |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | // Time units, plus logic tests. |
| 121 | checkUnitText("s", 0.51e-9, "0.51ns"); |
no test coverage detected
searching dependent graphs…