diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-13 06:46:41 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-13 06:46:41 +0800 |
commit | 82743cca924cd6960909310c8c7941b3c3c30da5 (patch) | |
tree | b8a9198f74ca014cc0f3defeb5d341330b74ebe6 /packages/sol-cov/src/profiler_subprovider.ts | |
parent | d0c348e5957d2adcd5b6f7b0727a5afd326e3b33 (diff) | |
download | dexon-sol-tools-82743cca924cd6960909310c8c7941b3c3c30da5.tar dexon-sol-tools-82743cca924cd6960909310c8c7941b3c3c30da5.tar.gz dexon-sol-tools-82743cca924cd6960909310c8c7941b3c3c30da5.tar.bz2 dexon-sol-tools-82743cca924cd6960909310c8c7941b3c3c30da5.tar.lz dexon-sol-tools-82743cca924cd6960909310c8c7941b3c3c30da5.tar.xz dexon-sol-tools-82743cca924cd6960909310c8c7941b3c3c30da5.tar.zst dexon-sol-tools-82743cca924cd6960909310c8c7941b3c3c30da5.zip |
Rename _coverageCollector -> _profilerCollector in TraceCollectionSubprovider
Diffstat (limited to 'packages/sol-cov/src/profiler_subprovider.ts')
-rw-r--r-- | packages/sol-cov/src/profiler_subprovider.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/sol-cov/src/profiler_subprovider.ts b/packages/sol-cov/src/profiler_subprovider.ts index 3489ef62b..62ed1b472 100644 --- a/packages/sol-cov/src/profiler_subprovider.ts +++ b/packages/sol-cov/src/profiler_subprovider.ts @@ -12,7 +12,7 @@ import { utils } from './utils'; * ProfilerSubprovider is used to profile Solidity code while running tests. */ export class ProfilerSubprovider extends TraceCollectionSubprovider { - private _coverageCollector: TraceCollector; + private _profilerCollector: TraceCollector; /** * Instantiates a ProfilerSubprovider instance * @param artifactAdapter Adapter for used artifacts format (0x, truffle, giveth, etc.) @@ -26,16 +26,16 @@ export class ProfilerSubprovider extends TraceCollectionSubprovider { shouldCollectCallTraces: false, }; super(defaultFromAddress, traceCollectionSubproviderConfig); - this._coverageCollector = new TraceCollector(artifactAdapter, isVerbose, profilerHandler); + this._profilerCollector = new TraceCollector(artifactAdapter, isVerbose, profilerHandler); } public async handleTraceInfoAsync(traceInfo: TraceInfo): Promise<void> { - await this._coverageCollector.computeSingleTraceCoverageAsync(traceInfo); + await this._profilerCollector.computeSingleTraceCoverageAsync(traceInfo); } /** * Write the test profiler results to a file in Istanbul format. */ public async writeProfilerOutputAsync(): Promise<void> { - await this._coverageCollector.writeOutputAsync(); + await this._profilerCollector.writeOutputAsync(); } } |