Contains coverage metadata for a file.

Static methods

staticfromDetails(uri:Uri, details:ReadOnlyArray<FileCoverageDetail>):FileCoverage

Creates a {@link FileCoverage} instance with counts filled in from the coverage details.

Parameters:

uri

Covered file URI

detailed

Detailed coverage information

Constructor

new(uri:Uri, statementCoverage:TestCoverageCount, ?branchCoverage:TestCoverageCount, ?declarationCoverage:TestCoverageCount, ?includesTests:Array<TestItem>)

@link includesTests}

Parameters:

uri

Covered file URI

statementCoverage

Statement coverage information. If the reporter does not provide statement coverage information, this can instead be used to represent line coverage.

branchCoverage

Branch coverage information

declarationCoverage

Declaration coverage information

includesTests

Test cases included in this coverage report, see {

Variables

branchCoverage:Null<TestCoverageCount>

Branch coverage information.

declarationCoverage:Null<TestCoverageCount>

Declaration coverage information. Depending on the reporter and language, this may be types such as functions, methods, or namespaces.

includesTests:Null<Array<TestItem>>

A list of {@link TestItem test cases} that generated coverage in this file. If set, then {@link TestRunProfile.loadDetailedCoverageForTest} should also be defined in order to retrieve detailed coverage information.

statementCoverage:TestCoverageCount

Statement coverage information. If the reporter does not provide statement coverage information, this can instead be used to represent line coverage.

read onlyuri:Uri

File URI.