Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FlatReportBuilder

Flat Report Builder

An extension of {@link ReportBuilder | ReportBuilder} that builds a FlatReport instead of a regular Report.

Hierarchy

Index

Constructors

constructor

Methods

build

  • Build a FlatReport

    Use the parsed data to build a FlatReport. If at least on 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 FlatReport

    FlatReport containing parsed data

Protected getDetailSummaryBuilder

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