Skip to content

Commit

Permalink
renamed coverage counts and added uncovered count
Browse files Browse the repository at this point in the history
  • Loading branch information
hossenlopp committed Mar 15, 2024
1 parent f132302 commit ca98110
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/calculation/HTMLBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,9 @@ export function generateClauseCoverageHTML<T extends CalculationOptions>(
// If details on coverage are requested, tally them up and add them to the map.
if (options.calculateCoverageDetails) {
coverageDetailsGroupLookup[groupId] = {
totalClauses: clauseCoverage.coveredClauses.length + clauseCoverage.uncoveredClauses.length,
coveredClauses: clauseCoverage.coveredClauses.length,
totalClauseCount: clauseCoverage.coveredClauses.length + clauseCoverage.uncoveredClauses.length,
coveredClauseCount: clauseCoverage.coveredClauses.length,
uncoveredClauseCount: clauseCoverage.uncoveredClauses.length,
uncoveredClauses: clauseCoverage.uncoveredClauses.map(uncoveredClause => {
return {
localId: uncoveredClause.localId,
Expand Down
5 changes: 3 additions & 2 deletions src/types/Calculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,9 @@ export interface CalculationOutput<T extends CalculationOptions> extends Calcula
}

export interface ClauseCoverageDetails {
totalClauses: number;
coveredClauses: number;
totalClauseCount: number;
coveredClauseCount: number;
uncoveredClauseCount: number;
uncoveredClauses: {
libraryName: string;
statementName: string;
Expand Down

0 comments on commit ca98110

Please sign in to comment.