diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-19 18:35:32 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-19 18:35:32 +0800 |
commit | 08ea71cb243067d8f4a4b08b2ed83ee11225d494 (patch) | |
tree | 0b9e213e05a050ede2be9d11ed2e040dc0947a81 /packages/sol-cov/src/coverage_subprovider.ts | |
parent | 0d0c1af7f741834f076a604b776d4542c4dbb6ec (diff) | |
parent | 0bfcf79e79b762a9fb98e90b8e6310c781cfae97 (diff) | |
download | dexon-sol-tools-08ea71cb243067d8f4a4b08b2ed83ee11225d494.tar dexon-sol-tools-08ea71cb243067d8f4a4b08b2ed83ee11225d494.tar.gz dexon-sol-tools-08ea71cb243067d8f4a4b08b2ed83ee11225d494.tar.bz2 dexon-sol-tools-08ea71cb243067d8f4a4b08b2ed83ee11225d494.tar.lz dexon-sol-tools-08ea71cb243067d8f4a4b08b2ed83ee11225d494.tar.xz dexon-sol-tools-08ea71cb243067d8f4a4b08b2ed83ee11225d494.tar.zst dexon-sol-tools-08ea71cb243067d8f4a4b08b2ed83ee11225d494.zip |
Merge branch 'v2-prototype' into feature/combinatorial-testing
* v2-prototype: (40 commits)
Increase number of columns in relayer grid for small screens
Make isValidSignature public
Make batchFill methods return FIllResults struct
Remove remove_tags script
Small fixes
Use semver package instead of getNextPatchVersion
Use semver library instead of semverUtils
small fixes
Show all errors of a given kind at once rather then throwing after the first instance is encountered
fix package.json
Add more prepublish checks
remove remove_tags script
Create a shared Image component
Adjust version in changelog
Update RelayerGridTile render logic to incorportate colors and logos
Add max width to top bar
Set max-width for LargeLayout
Finish last onboarding step
Finish set allowance step
Add onboarding assets
...
Diffstat (limited to 'packages/sol-cov/src/coverage_subprovider.ts')
-rw-r--r-- | packages/sol-cov/src/coverage_subprovider.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/sol-cov/src/coverage_subprovider.ts b/packages/sol-cov/src/coverage_subprovider.ts index 0fa7f873e..065a48434 100644 --- a/packages/sol-cov/src/coverage_subprovider.ts +++ b/packages/sol-cov/src/coverage_subprovider.ts @@ -2,8 +2,8 @@ import * as _ from 'lodash'; import { AbstractArtifactAdapter } from './artifact_adapters/abstract_artifact_adapter'; import { collectCoverageEntries } from './collect_coverage_entries'; -import { TraceCollectionSubprovider } from './trace_collection_subprovider'; import { SingleFileSubtraceHandler, TraceCollector } from './trace_collector'; +import { TraceInfoSubprovider } from './trace_info_subprovider'; import { BranchCoverage, ContractData, @@ -22,7 +22,7 @@ import { utils } from './utils'; * This class implements the [web3-provider-engine](https://github.com/MetaMask/provider-engine) subprovider interface. * It's used to compute your code coverage while running solidity tests. */ -export class CoverageSubprovider extends TraceCollectionSubprovider { +export class CoverageSubprovider extends TraceInfoSubprovider { private _coverageCollector: TraceCollector; /** * Instantiates a CoverageSubprovider instance @@ -39,7 +39,7 @@ export class CoverageSubprovider extends TraceCollectionSubprovider { super(defaultFromAddress, traceCollectionSubproviderConfig); this._coverageCollector = new TraceCollector(artifactAdapter, isVerbose, coverageHandler); } - public async handleTraceInfoAsync(traceInfo: TraceInfo): Promise<void> { + protected async _handleTraceInfoAsync(traceInfo: TraceInfo): Promise<void> { await this._coverageCollector.computeSingleTraceCoverageAsync(traceInfo); } /** |