Module html.Writer.TemplateData.Line

Info:

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

Class Line

Line.lineCoverageData The raw Line coverage data
Line:new (_lineCoverageData) Line constructor.
Line:toTemplateValues () Generates and returns a regular table that contains all template values that are required to visualize the raw Line coverage data.
Line:getLine () Returns the line contents.
Line:getLineNumber () Returns the line number.
Line:getNumberOfHitsText () Returns the text that should be used to visualize the number of hits.
Line:getCoverageTypeName () Returns the line's coverage type name.


Class Line

Contains the coverage information about a single line.
Line.lineCoverageData
The raw Line coverage data
  • lineCoverageData CoverageData.Line
Line:new (_lineCoverageData)
Line constructor.

Parameters:

  • _lineCoverageData CoverageData.Line The raw line coverage data
Line:toTemplateValues ()
Generates and returns a regular table that contains all template values that are required to visualize the raw Line coverage data.

Returns:

    table The template values
Line:getLine ()
Returns the line contents.

Returns:

    string The line contents
Line:getLineNumber ()
Returns the line number.

Returns:

    int The line number
Line:getNumberOfHitsText ()
Returns the text that should be used to visualize the number of hits.

Returns:

    string The "number of hits" text
Line:getCoverageTypeName ()
Returns the line's coverage type name.

Returns:

    string The line's coverage type name
generated by LDoc 1.4.6 Last updated 2020-06-01 14:04:23