[ library(coverage) | Reference Manual | Alphabetic Index ]

# result(+File)

Pretty-print a file, including any code coverage results

File
  Atom or string

## Description

This will pretty-print the given source file, annotated with the values of code coverage counters. The resulting .html file will be placed in a sub-directory called 'coverage', relative to File. See result/2 for options to modify the output.

This predicate only makes sense if File has previously been compiled in coverage mode (using coverage:ccompile/1,2), and the code has been run in order to obtain values for the coverage counters.

### Modules

This predicate is sensitive to its module context (tool predicate, see @/2).

## See Also

result / 2, library(coverage), library(pretty_printer), ccompile / 1