Home Manual Reference Source Test
public class | source

Reporter

Direct Subclass:

CliReporter, JUnitReporter

Reports per-file documentation coverage.

Constructor Summary

Public Constructor
public

Creates a new reporter.

Member Summary

Public Members
public

Number of covered identifiers.

public

Total number of identifiers.

public

The number of files processed but nut covered.

public

The number of files processed.

public

If the report has a failure.

Method Summary

Public Methods
public

Called once all files have been processed.

public

report(filename: string, success: boolean, actual: number, expected: number, uncoveredLines: number[])

Reports the coverage of a file.

Public Constructors

public constructor() source

Creates a new reporter.

Test:

Public Members

public actual: number source

Number of covered identifiers.

public expected: number source

Total number of identifiers.

public notCoveredFiles: number source

The number of files processed but nut covered.

public numberOfFiles: number source

The number of files processed.

public success: boolean source

If the report has a failure.

Public Methods

public finish(): Promise<Error, String> source

Called once all files have been processed. Outputs the report.

Return:

Promise<Error, String>

Resolved with the report or an error.

Test:

public report(filename: string, success: boolean, actual: number, expected: number, uncoveredLines: number[]) source

Reports the coverage of a file.

Params:

NameTypeAttributeDescription
filename string

Name of the file.

success boolean

If the file's documentation coverage meets the threshold.

actual number

Number of documented identifiers.

expected number

Number of expected identifiers.

uncoveredLines number[]

Array of line numbers not documented.

Test: