diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-16 20:32:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-16 20:32:21 +0800 |
commit | 2acb7676407537b2793f34def0fd384720ad1b0b (patch) | |
tree | 892586ad93cedba8858814e4b37484f6d28d17bf /packages/sol-cov/src/coverage_manager.ts | |
parent | 0225d34b742072fb846fa2047cb4b0559069dfe8 (diff) | |
parent | a9b1dcb32ab72e7f0f8423bd519f80df12281dbe (diff) | |
download | dexon-sol-tools-2acb7676407537b2793f34def0fd384720ad1b0b.tar dexon-sol-tools-2acb7676407537b2793f34def0fd384720ad1b0b.tar.gz dexon-sol-tools-2acb7676407537b2793f34def0fd384720ad1b0b.tar.bz2 dexon-sol-tools-2acb7676407537b2793f34def0fd384720ad1b0b.tar.lz dexon-sol-tools-2acb7676407537b2793f34def0fd384720ad1b0b.tar.xz dexon-sol-tools-2acb7676407537b2793f34def0fd384720ad1b0b.tar.zst dexon-sol-tools-2acb7676407537b2793f34def0fd384720ad1b0b.zip |
Merge pull request #457 from 0xProject/feature/sol-cov-tests
Add tests for sol-cov
Diffstat (limited to 'packages/sol-cov/src/coverage_manager.ts')
-rw-r--r-- | packages/sol-cov/src/coverage_manager.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/sol-cov/src/coverage_manager.ts b/packages/sol-cov/src/coverage_manager.ts index b1ba8b22b..230ccc3c9 100644 --- a/packages/sol-cov/src/coverage_manager.ts +++ b/packages/sol-cov/src/coverage_manager.ts @@ -39,7 +39,7 @@ export class CoverageManager { fileIndex: number, ): Coverage { const fileName = contractData.sources[fileIndex]; - const coverageEntriesDescription = collectCoverageEntries(contractData.sourceCodes[fileIndex], fileName); + const coverageEntriesDescription = collectCoverageEntries(contractData.sourceCodes[fileIndex]); let sourceRanges = _.map(coveredPcs, coveredPc => pcToSourceRange[coveredPc]); 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. |