MCPcopy Index your code
hub / github.com/nodejs/node / toPercentage

Function toPercentage

lib/internal/test_runner/coverage.js:590–592  ·  view source on GitHub ↗
(covered, total)

Source from the content-addressed store, hash-verified

588}
589
590function toPercentage(covered, total) {
591 return total === 0 ? 100 : (covered / total) * 100;
592}
593
594function sortCoverageFiles(a, b) {
595 return StringPrototypeLocaleCompare(a.path, b.path);

Callers 1

summaryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected