Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
590
function
toPercentage(covered, total) {
591
return
total === 0 ? 100 : (covered / total) * 100;
592
}
593
594
function
sortCoverageFiles(a, b) {
595
return
StringPrototypeLocaleCompare(a.path, b.path);
Callers
1
summary
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected