Module luacov.stats

Manages the file with statistics (being) collected.

In general the module requires that its property stats.statsfile has been set to the filename of the statsfile to create, load, etc.

Functions

load () Loads the stats file.
start () Opens the statfile
stop (fd) Closes the statfile
save (data, fd) Saves data to the statfile


Functions

load ()
Loads the stats file.

Returns:

    table with data. The table maps filenames to stats tables. Per-file tables map line numbers to hits or nils when there are no hits. Additionally, .max field contains maximum line number and .max_hits contains maximum number of hits in the file.
start ()
Opens the statfile

Returns:

    filehandle
stop (fd)
Closes the statfile

Parameters:

  • fd filehandle to the statsfile
save (data, fd)
Saves data to the statfile

Parameters:

  • data data to store
  • fd filehandle where to store
generated by LDoc 1.4.3 Last updated 2016-02-09 14:12:55