Module html.CoverageData.File

Info:

  • Copyright: 2020 wesen
  • Release: 0.1
  • License: MIT
  • Author: wesen

Class File

File.lineCoverages The coverage data for the lines in the file
File:new (_fileName, _parentDirectoryCoverageData) File constructor.
File:getSortedLineCoverages () Returns the line coverage data for the lines in the file sorted ascending by line number.
File:addEmptyLine (_lineNumber, _line) Adds an empty line to this File.
File:addMissedLine (_lineNumber, _line) Adds a missed line to this File.
File:addHitLine (_lineNumber, _line, _numberOfHits) Adds a hit line to this File.
File:addLineCoverageData (_lineCoverageData) Adds a Line coverage data object to this File.


Class File

Contains coverage information about a single file.
File.lineCoverages
The coverage data for the lines in the file
  • lineCoverages Line[]
File:new (_fileName, _parentDirectoryCoverageData)
File constructor.

Parameters:

  • _fileName string The name of the file
  • _parentDirectoryCoverageData Directory The coverage data of the parent directory
File:getSortedLineCoverages ()
Returns the line coverage data for the lines in the file sorted ascending by line number.

Returns:

    Line[] The line coverage data
File:addEmptyLine (_lineNumber, _line)
Adds an empty line to this File.

Parameters:

  • _lineNumber int The line number of the line
  • _line string The content of the line
File:addMissedLine (_lineNumber, _line)
Adds a missed line to this File.

Parameters:

  • _lineNumber int The line number of the line
  • _line string The content of the line
File:addHitLine (_lineNumber, _line, _numberOfHits)
Adds a hit line to this File.

Parameters:

  • _lineNumber int The line number of the line
  • _line string The content of the line
  • _numberOfHits int The number of times the line was executed
File:addLineCoverageData (_lineCoverageData)
Adds a Line coverage data object to this File.

Parameters:

  • _lineCoverageData Line The Line coverage data to add
generated by LDoc 1.4.6 Last updated 2020-06-01 14:04:23