Single-File Templates
In one text file, coverage information for directories, source files and functions is structured. Functions are the smallest reporting entity, there is no equivalence to source code view.
The file extension of the template determines the default file extension of the output file - there is no format semantic associated with it by ctcreport. You can create templates for all text based formats, like JSON, CSV, XML, YAML etc.
Variables are used in $...$
like in structured templates. Loop controls
are enclosed in {…}
instead of HTML comments:
{CTC_LOOP("Symbolfiles")}
FileName: $FileName$
Instrumentation Time: $InstrumentationTime$
{CTC_LOOP_END("Symbolfiles")}
The layout concept does not apply here. Hence, the report hierarchy in one single-file
template is determined by up to three loops directly referring to an entity:
- CTC_LOOP("Directories")
- CTC_LOOP("SourceFiles")
- CTC_LOOP("Functions")