mozbuild.codecoverage package¶
Submodules¶
mozbuild.codecoverage.chrome_map module¶
- class mozbuild.codecoverage.chrome_map.ChromeMapBackend(environment)¶
Bases:
CommonBackend
- consume_finished()¶
Called when consume() has completed handling all objects.
- consume_object(obj)¶
Consumes an individual TreeMetadata instance.
This is the main method used by child classes to react to build metadata.
- mozbuild.codecoverage.chrome_map.generate_pp_info(path, topsrcdir)¶
mozbuild.codecoverage.lcov_rewriter module¶
- class mozbuild.codecoverage.lcov_rewriter.LcovFile(lcov_paths)¶
Bases:
object
- PREFIX_TYPES = {'BRDA': 3, 'BRF': 0, 'BRH': 0, 'DA': 2, 'FN': 1, 'FNDA': 1, 'FNF': 0, 'FNH': 0, 'LF': 0, 'LH': 0, 'SF': 0, 'TN': 0}¶
- format_branch_count(record)¶
- format_branches(record)¶
- format_covered_branch_count(record)¶
- format_covered_function_count(record)¶
- format_covered_line_count(record)¶
- format_function_count(record)¶
- format_function_exec_counts(record)¶
- format_functions(record)¶
- format_line_count(record)¶
- format_lines(record)¶
- format_record(record)¶
- format_source_file(record)¶
- format_test_name(record)¶
- iterate_records(rewrite_source=None)¶
- parse_BRDA(line_number, block_number, branch_number, taken)¶
- parse_BRF(branch_count)¶
- parse_BRH(covered_branch_count)¶
- parse_DA(line_number, execution_count, checksum=None)¶
- parse_FN(start_lineno, fn_name)¶
- parse_FNDA(exec_count, fn_name)¶
- parse_FNF(function_count)¶
- parse_FNH(covered_function_count)¶
- parse_LF(line_count)¶
- parse_LH(covered_line_count)¶
- parse_SF(source_file)¶
- parse_TN(test_name)¶
- parse_record(record_content)¶
- print_file(fh, rewrite_source, rewrite_record)¶
- class mozbuild.codecoverage.lcov_rewriter.LcovFileRewriter(chrome_map_path, appdir='dist/bin/browser/', gredir='dist/bin/', extra_chrome_manifests=[])¶
Bases:
object
- rewrite_files(in_paths, output_file, output_suffix)¶
- class mozbuild.codecoverage.lcov_rewriter.LcovRecord¶
Bases:
object
- branch_count¶
- branches¶
- covered_branch_count¶
- covered_function_count¶
- covered_line_count¶
- function_count¶
- function_exec_counts¶
- functions¶
- line_count¶
- lines¶
- resummarize()¶
- source_file¶
- test_name¶
- class mozbuild.codecoverage.lcov_rewriter.RecordRewriter¶
Bases:
object
- rewrite_record(record, pp_info)¶
- class mozbuild.codecoverage.lcov_rewriter.UrlFinder(chrome_map_path, appdir, gredir, extra_chrome_manifests)¶
Bases:
object
- find_files(url)¶
- rewrite_url(url)¶
- exception mozbuild.codecoverage.lcov_rewriter.UrlFinderError¶
Bases:
Exception
- mozbuild.codecoverage.lcov_rewriter.main()¶
mozbuild.codecoverage.manifest_handler module¶
mozbuild.codecoverage.packager module¶
- mozbuild.codecoverage.packager.cli(args=['doc', '--upload', '--no-open', '--no-serve', '--write-url', '/builds/worker/firefox-source-docs-url.txt', '--dump-trees=/builds/worker/artifacts/trees.json'])¶
- mozbuild.codecoverage.packager.describe_install_manifest(manifest, dest_dir)¶
- mozbuild.codecoverage.packager.package_coverage_data(root, output_file)¶