aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-cov/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-03-09 23:07:11 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-03-12 10:37:29 +0800
commit633039c52893579ad929fbcbca084ea5726ce20e (patch)
tree59dc572884513800fbb3d329a921405ae82bf917 /packages/sol-cov/src
parentee31d5e24d92fc42c003bd49c98e674498a0dfed (diff)
downloaddexon-sol-tools-633039c52893579ad929fbcbca084ea5726ce20e.tar
dexon-sol-tools-633039c52893579ad929fbcbca084ea5726ce20e.tar.gz
dexon-sol-tools-633039c52893579ad929fbcbca084ea5726ce20e.tar.bz2
dexon-sol-tools-633039c52893579ad929fbcbca084ea5726ce20e.tar.lz
dexon-sol-tools-633039c52893579ad929fbcbca084ea5726ce20e.tar.xz
dexon-sol-tools-633039c52893579ad929fbcbca084ea5726ce20e.tar.zst
dexon-sol-tools-633039c52893579ad929fbcbca084ea5726ce20e.zip
Use better variable name
Diffstat (limited to 'packages/sol-cov/src')
-rw-r--r--packages/sol-cov/src/coverage_manager.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/sol-cov/src/coverage_manager.ts b/packages/sol-cov/src/coverage_manager.ts
index c1ca7142e..1e4df9d29 100644
--- a/packages/sol-cov/src/coverage_manager.ts
+++ b/packages/sol-cov/src/coverage_manager.ts
@@ -44,10 +44,10 @@ function getSingleFileCoverageForTrace(
const branchIds = _.keys(coverageEntriesDescription.branchMap);
for (const branchId of branchIds) {
const branchDescription = coverageEntriesDescription.branchMap[branchId];
- const isCovered = _.map(branchDescription.locations, location =>
+ const isCoveredByBranchIndex = _.map(branchDescription.locations, location =>
_.some(sourceRanges, range => utils.isRangeInside(range.location, location)),
);
- branchCoverage[branchId] = isCovered;
+ branchCoverage[branchId] = isCoveredByBranchIndex;
}
const statementCoverage: StatementCoverage = {};
const statementIds = _.keys(coverageEntriesDescription.statementMap);