diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-13 05:11:11 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-13 05:11:11 +0800 |
commit | 627ea6c860e97a6e04877f10f9f842c5d5a907d6 (patch) | |
tree | f49441f5d72f5e16dc8b29614bee05093e4e3151 /packages | |
parent | bcc76b37641a5f4c05fbe84059ed1f2a842bade8 (diff) | |
download | dexon-sol-tools-627ea6c860e97a6e04877f10f9f842c5d5a907d6.tar dexon-sol-tools-627ea6c860e97a6e04877f10f9f842c5d5a907d6.tar.gz dexon-sol-tools-627ea6c860e97a6e04877f10f9f842c5d5a907d6.tar.bz2 dexon-sol-tools-627ea6c860e97a6e04877f10f9f842c5d5a907d6.tar.lz dexon-sol-tools-627ea6c860e97a6e04877f10f9f842c5d5a907d6.tar.xz dexon-sol-tools-627ea6c860e97a6e04877f10f9f842c5d5a907d6.tar.zst dexon-sol-tools-627ea6c860e97a6e04877f10f9f842c5d5a907d6.zip |
Rename computeCoverageAsync -> computeSingleTraceCoverageAsync
Diffstat (limited to 'packages')
-rw-r--r-- | packages/sol-cov/src/coverage_manager.ts | 2 | ||||
-rw-r--r-- | packages/sol-cov/src/coverage_subprovider.ts | 2 | ||||
-rw-r--r-- | packages/sol-cov/src/profiler_manager.ts | 2 | ||||
-rw-r--r-- | packages/sol-cov/src/profiler_subprovider.ts | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/packages/sol-cov/src/coverage_manager.ts b/packages/sol-cov/src/coverage_manager.ts index a55967243..673a3e600 100644 --- a/packages/sol-cov/src/coverage_manager.ts +++ b/packages/sol-cov/src/coverage_manager.ts @@ -137,7 +137,7 @@ export class CoverageManager { await mkdirpAsync('coverage'); fs.writeFileSync('coverage/coverage.json', stringifiedCoverage); } - public async computeCoverageAsync(traceInfo: TraceInfo): Promise<void> { + public async computeSingleTraceCoverageAsync(traceInfo: TraceInfo): Promise<void> { if (_.isUndefined(this._contractsData)) { this._contractsData = await this._artifactAdapter.collectContractsDataAsync(); } diff --git a/packages/sol-cov/src/coverage_subprovider.ts b/packages/sol-cov/src/coverage_subprovider.ts index 6fb709e86..3529fb885 100644 --- a/packages/sol-cov/src/coverage_subprovider.ts +++ b/packages/sol-cov/src/coverage_subprovider.ts @@ -25,7 +25,7 @@ export class CoverageSubprovider extends TraceCollectionSubprovider { this._coverageManager = new CoverageManager(artifactAdapter, isVerbose); } public async handleTraceInfoAsync(traceInfo: TraceInfo): Promise<void> { - await this._coverageManager.computeCoverageAsync(traceInfo); + await this._coverageManager.computeSingleTraceCoverageAsync(traceInfo); } /** * Write the test coverage results to a file in Istanbul format. diff --git a/packages/sol-cov/src/profiler_manager.ts b/packages/sol-cov/src/profiler_manager.ts index bec92f424..88e183cbd 100644 --- a/packages/sol-cov/src/profiler_manager.ts +++ b/packages/sol-cov/src/profiler_manager.ts @@ -93,7 +93,7 @@ export class ProfilerManager { await mkdirpAsync('coverage'); fs.writeFileSync('coverage/coverage.json', stringifiedCoverage); } - public async computeCoverageAsync(traceInfo: TraceInfo): Promise<void> { + public async computeSingleTraceCoverageAsync(traceInfo: TraceInfo): Promise<void> { if (_.isUndefined(this._contractsData)) { this._contractsData = await this._artifactAdapter.collectContractsDataAsync(); } diff --git a/packages/sol-cov/src/profiler_subprovider.ts b/packages/sol-cov/src/profiler_subprovider.ts index 34c125b86..9fd815f07 100644 --- a/packages/sol-cov/src/profiler_subprovider.ts +++ b/packages/sol-cov/src/profiler_subprovider.ts @@ -25,7 +25,7 @@ export class ProfilerSubprovider extends TraceCollectionSubprovider { this._profilerManager = new ProfilerManager(artifactAdapter, isVerbose); } public async handleTraceInfoAsync(traceInfo: TraceInfo): Promise<void> { - await this._profilerManager.computeCoverageAsync(traceInfo); + await this._profilerManager.computeSingleTraceCoverageAsync(traceInfo); } /** * Write the test profiler results to a file in Istanbul format. |