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