Rename computeCoverageAsync -> computeSingleTraceCoverageAsync
This commit is contained in:
		@@ -137,7 +137,7 @@ export class CoverageManager {
 | 
				
			|||||||
        await mkdirpAsync('coverage');
 | 
					        await mkdirpAsync('coverage');
 | 
				
			||||||
        fs.writeFileSync('coverage/coverage.json', stringifiedCoverage);
 | 
					        fs.writeFileSync('coverage/coverage.json', stringifiedCoverage);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    public async computeCoverageAsync(traceInfo: TraceInfo): Promise<void> {
 | 
					    public async computeSingleTraceCoverageAsync(traceInfo: TraceInfo): Promise<void> {
 | 
				
			||||||
        if (_.isUndefined(this._contractsData)) {
 | 
					        if (_.isUndefined(this._contractsData)) {
 | 
				
			||||||
            this._contractsData = await this._artifactAdapter.collectContractsDataAsync();
 | 
					            this._contractsData = await this._artifactAdapter.collectContractsDataAsync();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,7 +25,7 @@ export class CoverageSubprovider extends TraceCollectionSubprovider {
 | 
				
			|||||||
        this._coverageManager = new CoverageManager(artifactAdapter, isVerbose);
 | 
					        this._coverageManager = new CoverageManager(artifactAdapter, isVerbose);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    public async handleTraceInfoAsync(traceInfo: TraceInfo): Promise<void> {
 | 
					    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.
 | 
					     * Write the test coverage results to a file in Istanbul format.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -93,7 +93,7 @@ export class ProfilerManager {
 | 
				
			|||||||
        await mkdirpAsync('coverage');
 | 
					        await mkdirpAsync('coverage');
 | 
				
			||||||
        fs.writeFileSync('coverage/coverage.json', stringifiedCoverage);
 | 
					        fs.writeFileSync('coverage/coverage.json', stringifiedCoverage);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    public async computeCoverageAsync(traceInfo: TraceInfo): Promise<void> {
 | 
					    public async computeSingleTraceCoverageAsync(traceInfo: TraceInfo): Promise<void> {
 | 
				
			||||||
        if (_.isUndefined(this._contractsData)) {
 | 
					        if (_.isUndefined(this._contractsData)) {
 | 
				
			||||||
            this._contractsData = await this._artifactAdapter.collectContractsDataAsync();
 | 
					            this._contractsData = await this._artifactAdapter.collectContractsDataAsync();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,7 +25,7 @@ export class ProfilerSubprovider extends TraceCollectionSubprovider {
 | 
				
			|||||||
        this._profilerManager = new ProfilerManager(artifactAdapter, isVerbose);
 | 
					        this._profilerManager = new ProfilerManager(artifactAdapter, isVerbose);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    public async handleTraceInfoAsync(traceInfo: TraceInfo): Promise<void> {
 | 
					    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.
 | 
					     * Write the test profiler results to a file in Istanbul format.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user