covr-rendering-single: Rendering for single file report

Description Usage Arguments

Description

These functions facilitate the creation of reports for coverage of a single file.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
.renderSourceRow(line, source, coverage)

.renderSourceFile(lines, file = "source", highlight = TRUE)

.single_file_summary(file_stats)

.renderReport(
  coverage,
  report.file,
  dir = dirname(report.file),
  libdir = file.path(dir, "lib")
)

Arguments

line, lines

Line(s) number

source

source file

coverage

The number of times covered

file

the file in question

highlight

Highlight the row.

file_stats

The coverage object for the file.

report.file

Where to output the HTML report.

dir

the base directory for the HTML output

libdir

Where to put html dependencies?


RDocTaskForce/testextra documentation built on Feb. 5, 2020, 11:05 p.m.