File src/luacov/stats.lua

Functions

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


Functions

stats.load ()
Loads the stats file.

Return values:

  1. table with data
  2. hitcount of the line with the most hits (to provide the widest number format for reporting)
stats.save (data, fd)
Saves data to the statfile

Parameters

  • data: data to store
  • fd: filehandle where to store
stats.start ()
Opens the statfile

Return value:

filehandle
stats.stop (fd)
Closes the statfile

Parameters

  • fd: filehandle to the statsfile

Valid XHTML 1.0!