Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ReportBuilder

Report Builder

Build a Report from LCOV formatted data.

Hierarchy

Index

Constructors

constructor

Methods

build

  • Build a Report

    Use the parsed data to build a Report. If at least one section of data has not been parsed yet, this method will throw an error.

    throws

    when builder has not received at least one section of data

    Returns Report

    Report containing parsed data

Protected getDetailSummaryBuilder

  • getDetailSummaryBuilder(rootDirectory?: undefined | string): SummaryBuilder

Protected handleParseDetail

  • handleParseDetail(line: string): void
  • Handle parsing data for current section

    remarks

    When the section has enough data, the Summary is built and a new SummaryBuilder is created to handle parsing the next section. If a Summary already exists for the given path, the new Summary is combined with the existing Summary.

    Parameters

    • line: string

      data to parse

    Returns void

Protected handleParseTotal

  • handleParseTotal(line: string): void

parse

  • parse(line: string): void
  • Parse a line of data

    Parse a line of data that matches the LCOV format. Data will contribute to both the section's summary data as well as total summary data for the report.

    Parameters

    • line: string

      data to parse

    Returns void

Generated using TypeDoc