src/clover.js
// Get the total coverage percentage from the clover data.
Get the total coverage percentage from the clover data.
Get the total coverage percentage from the clover data .
function percentage(clover) {
	let hit = 0
	let found = 0
	for (const entry of clover) {
		hit += entry.lines.hit
		found += entry.lines.found
	}
	return (hit / found) * 100
}
function percentage ( clover ) { let hit = 0 let found = 0 for ( const entry of clover ) { hit += entry . lines . hit found += entry . lines . found } return ( hit / found ) * 100 }
Get the total coverage percentage from the clover data.
Get the total coverage percentage from the clover data .