Skip to content

Commit 63bc04f

Browse files
committed
Added branch coverage
1 parent 73349f8 commit 63bc04f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/scales/coverage.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ trait CoverageMetrics {
9898
def statementCount: Int = statements.count(!_.branch)
9999
def invokedStatements: Iterable[MeasuredStatement] = statements.filter(_.count > 0)
100100
def invokedStatementCount = invokedStatements.size
101-
def statementCoverage: Double = invokedStatements / statementCount.toDouble
101+
def statementCoverage: Double = invokedStatementCount / statementCount.toDouble
102102
def statementCoverageFormatted: String = "%.2f".format(statementCoverage * 100)
103103
def branches: Iterable[MeasuredStatement] = statements.filter(_.branch)
104104
def branchCount: Int = branches.size

0 commit comments

Comments
 (0)