allwinner_a64/android/test/vts/utils/python/coverage
2018-08-08 17:48:24 +08:00
..
testdata upload android base code part6 2018-08-08 17:48:24 +08:00
__init__.py upload android base code part6 2018-08-08 17:48:24 +08:00
Android.mk upload android base code part6 2018-08-08 17:48:24 +08:00
arc_summary.py upload android base code part6 2018-08-08 17:48:24 +08:00
arc_summary_test.py upload android base code part6 2018-08-08 17:48:24 +08:00
block_summary.py upload android base code part6 2018-08-08 17:48:24 +08:00
coverage_report.py upload android base code part6 2018-08-08 17:48:24 +08:00
coverage_report_test.py upload android base code part6 2018-08-08 17:48:24 +08:00
coverage_utils.py upload android base code part6 2018-08-08 17:48:24 +08:00
file_summary.py upload android base code part6 2018-08-08 17:48:24 +08:00
function_summary.py upload android base code part6 2018-08-08 17:48:24 +08:00
function_summary_test.py upload android base code part6 2018-08-08 17:48:24 +08:00
gcda_parser.py upload android base code part6 2018-08-08 17:48:24 +08:00
gcda_parser_test.py upload android base code part6 2018-08-08 17:48:24 +08:00
gcno_parser.py upload android base code part6 2018-08-08 17:48:24 +08:00
gcno_parser_test.py upload android base code part6 2018-08-08 17:48:24 +08:00
parser.py upload android base code part6 2018-08-08 17:48:24 +08:00
parser_test.py upload android base code part6 2018-08-08 17:48:24 +08:00
README.md upload android base code part6 2018-08-08 17:48:24 +08:00

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'.