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:
- table with data
- 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