aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-cov/src/coverage_subprovider.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-06-15 08:07:03 +0800
committerGitHub <noreply@github.com>2018-06-15 08:07:03 +0800
commitff0960b174ffb8759f9f96e1486372acf54bf840 (patch)
tree9193336e896e72ce4f53eec52e45e5427dd89ccd /packages/sol-cov/src/coverage_subprovider.ts
parente7eb220c503118631a6b23071c71b4b55df5b5cf (diff)
parent7032825e35e825e42196d4ccc23b1a1f7fb8038a (diff)
downloaddexon-sol-tools-ff0960b174ffb8759f9f96e1486372acf54bf840.tar
dexon-sol-tools-ff0960b174ffb8759f9f96e1486372acf54bf840.tar.gz
dexon-sol-tools-ff0960b174ffb8759f9f96e1486372acf54bf840.tar.bz2
dexon-sol-tools-ff0960b174ffb8759f9f96e1486372acf54bf840.tar.lz
dexon-sol-tools-ff0960b174ffb8759f9f96e1486372acf54bf840.tar.xz
dexon-sol-tools-ff0960b174ffb8759f9f96e1486372acf54bf840.tar.zst
dexon-sol-tools-ff0960b174ffb8759f9f96e1486372acf54bf840.zip
Merge pull request #705 from 0xProject/feature/revert-trace-subprovider
Introduce subprovider for printing revert stack traces
Diffstat (limited to 'packages/sol-cov/src/coverage_subprovider.ts')
-rw-r--r--packages/sol-cov/src/coverage_subprovider.ts6
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);
}
/**