2.3. gcov module

GNAThub plug-in for the Gcov command-line tool.

It exports the Gcov class which implements the GNAThub.Plugin interface. This allows GNAThub’s plug-in scanner to automatically find this module and load it as part of the GNAThub default execution.

class gcov.Gcov[source]

Bases: Plugin, Reporter

Gcov plugin for GNAThub.

Retrieves .gcov generated files from the project root object directory, parses them and feeds the database with the data collected from each files.

GCOV_EXT = '.gcov'
__init__()[source]

Initialize instance properties.

report()[source]

Analyse the report files generated by Gcov.

Finds all .gcov files in the object directory and parses them.

Sets the exec_status property according to the success of the analysis:

  • GNAThub.EXEC_SUCCESS: on successful execution and analysis

  • GNAThub.EXEC_FAILURE: on any error