@code-pushup/coverage-plugin
Version:
Code PushUp plugin for tracking code coverage ☂
10 lines (9 loc) • 451 B
TypeScript
import type { NumberRange } from './types.js';
/**
* This function calculates coverage as ratio of tested entities vs total
* @param hit how many entities were executed in at least one test
* @param found how many entities were found overall
* @returns coverage between 0 and 1
*/
export declare function calculateCoverage(hit: number, found: number): number;
export declare function mergeConsecutiveNumbers(numberArr: number[]): NumberRange[];