Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
testdata/ | 03-May-2024 | - | 43 | 32 | ||
Android.mk | D | 03-May-2024 | 1.5 KiB | 43 | 23 | |
README.md | D | 03-May-2024 | 668 | 19 | 13 | |
__init__.py | D | 03-May-2024 | 0 | 1 | 0 | |
arc_summary.py | D | 03-May-2024 | 3.5 KiB | 91 | 64 | |
arc_summary_test.py | D | 03-May-2024 | 4.3 KiB | 120 | 79 | |
block_summary.py | D | 03-May-2024 | 2.2 KiB | 66 | 41 | |
coverage_report.py | D | 03-May-2024 | 3.7 KiB | 101 | 72 | |
coverage_report_test.py | D | 03-May-2024 | 2.2 KiB | 64 | 37 | |
coverage_utils.py | D | 03-May-2024 | 32.2 KiB | 772 | 631 | |
file_summary.py | D | 03-May-2024 | 1.4 KiB | 43 | 20 | |
function_summary.py | D | 03-May-2024 | 3.5 KiB | 103 | 70 | |
function_summary_test.py | D | 03-May-2024 | 3.3 KiB | 93 | 60 | |
gcda_parser.py | D | 03-May-2024 | 6.1 KiB | 193 | 136 | |
gcda_parser_test.py | D | 03-May-2024 | 5.6 KiB | 145 | 107 | |
gcno_parser.py | D | 03-May-2024 | 8 KiB | 243 | 176 | |
gcno_parser_test.py | D | 03-May-2024 | 8.9 KiB | 220 | 169 | |
parser.py | D | 03-May-2024 | 3.6 KiB | 117 | 77 | |
parser_test.py | D | 03-May-2024 | 7.6 KiB | 217 | 160 | |
sancov_parser.py | D | 03-May-2024 | 3.1 KiB | 106 | 70 | |
sancov_parser_test.py | D | 03-May-2024 | 3.6 KiB | 103 | 71 | |
sancov_utils.py | D | 03-May-2024 | 14.5 KiB | 347 | 289 |
README.md
1# To run from another Python module 2 3Import the CoverageReport module by including the line: 4 5 from vts.utils.python.coverage import CoverageReport 6 7Run the code by calling the parse function as follows: 8 html_report = CoverageReport.GenerateCoverageReport(src_file_name, src_file_content, gcov_file_content, 9 gcda_file_content) 10 11Args: 12 src_file_name: string, the source file name. 13 src_file_content: string, the C/C++ source file content. 14 gcov_file_content: string, the raw gcov binary file content. 15 gcda_file_content: string, the raw gcda binary file content. 16 17Returns: 18 the coverage HTML produced for 'src_file_name'. 19