aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-coverage/src
diff options
context:
space:
mode:
authorRemco Bloemen <remco@wicked.ventures>2018-12-21 06:59:12 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2019-01-11 18:26:38 +0800
commit4d03c3035c9186d4a05b159f8209cda046b397a3 (patch)
treea3d8b0315c2cd300c97a3c43b764c56a352ffa8b /packages/sol-coverage/src
parent27c4d2522bc5eb35851e6d86bf4bc7a31b3386e5 (diff)
downloaddexon-sol-tools-4d03c3035c9186d4a05b159f8209cda046b397a3.tar
dexon-sol-tools-4d03c3035c9186d4a05b159f8209cda046b397a3.tar.gz
dexon-sol-tools-4d03c3035c9186d4a05b159f8209cda046b397a3.tar.bz2
dexon-sol-tools-4d03c3035c9186d4a05b159f8209cda046b397a3.tar.lz
dexon-sol-tools-4d03c3035c9186d4a05b159f8209cda046b397a3.tar.xz
dexon-sol-tools-4d03c3035c9186d4a05b159f8209cda046b397a3.tar.zst
dexon-sol-tools-4d03c3035c9186d4a05b159f8209cda046b397a3.zip
Fix typo
Diffstat (limited to 'packages/sol-coverage/src')
-rw-r--r--packages/sol-coverage/src/coverage_subprovider.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/sol-coverage/src/coverage_subprovider.ts b/packages/sol-coverage/src/coverage_subprovider.ts
index e6b546c4a..21d25ed74 100644
--- a/packages/sol-coverage/src/coverage_subprovider.ts
+++ b/packages/sol-coverage/src/coverage_subprovider.ts
@@ -74,7 +74,7 @@ export const coverageHandler: SingleFileSubtraceHandler = (
let sourceRanges = _.map(subtrace, structLog => pcToSourceRange[structLog.pc]);
sourceRanges = _.compact(sourceRanges); // Some PC's don't map to a source range and we just ignore them.
- // By default lodash does a shallow object comparasion. We JSON.stringify them and compare as strings.
+ // By default lodash does a shallow object comparison. We JSON.stringify them and compare as strings.
sourceRanges = _.uniqBy(sourceRanges, s => JSON.stringify(s)); // We don't care if one PC was covered multiple times within a single transaction
sourceRanges = _.filter(sourceRanges, sourceRange => sourceRange.fileName === absoluteFileName);
const branchCoverage: BranchCoverage = {};