tree: e88db19b5d1d96512df77affefdf2c2b859e00a2 [path history] [tgz]
  1. testdata/
  2. __init__.py
  3. Android.mk
  4. arc_summary.py
  5. arc_summary_test.py
  6. block_summary.py
  7. coverage_report.py
  8. coverage_report_test.py
  9. coverage_utils.py
  10. file_summary.py
  11. function_summary.py
  12. function_summary_test.py
  13. gcda_parser.py
  14. gcda_parser_test.py
  15. gcno_parser.py
  16. gcno_parser_test.py
  17. parser.py
  18. parser_test.py
  19. README.md
  20. sancov_parser.py
  21. sancov_parser_test.py
  22. sancov_utils.py
utils/python/coverage/README.md

To run from another Python module

Import the CoverageReport module by including the line:

from vts.utils.python.coverage import CoverageReport

Run the code by calling the parse function as follows: html_report = CoverageReport.GenerateCoverageReport(src_file_name, src_file_content, gcov_file_content, gcda_file_content)

Args: src_file_name: string, the source file name. src_file_content: string, the C/C++ source file content. gcov_file_content: string, the raw gcov binary file content. gcda_file_content: string, the raw gcda binary file content.

Returns: the coverage HTML produced for ‘src_file_name’.