diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-09 23:07:11 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-12 10:37:29 +0800 |
commit | 633039c52893579ad929fbcbca084ea5726ce20e (patch) | |
tree | 59dc572884513800fbb3d329a921405ae82bf917 /packages/sol-cov/src/coverage_manager.ts | |
parent | ee31d5e24d92fc42c003bd49c98e674498a0dfed (diff) | |
download | dexon-sol-tools-633039c52893579ad929fbcbca084ea5726ce20e.tar.gz dexon-sol-tools-633039c52893579ad929fbcbca084ea5726ce20e.tar.zst dexon-sol-tools-633039c52893579ad929fbcbca084ea5726ce20e.zip |
Use better variable name
Diffstat (limited to 'packages/sol-cov/src/coverage_manager.ts')
-rw-r--r-- | packages/sol-cov/src/coverage_manager.ts | 4 |
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); |