mozbuild.codecoverage 包¶
子模块¶
mozbuild.codecoverage.chrome_map 模块¶
- class mozbuild.codecoverage.chrome_map.ChromeMapBackend(environment)¶
基类:
CommonBackend
- consume_finished()¶
当 consume() 完成所有对象的处理时调用。
- consume_object(obj)¶
使用单个 TreeMetadata 实例。
这是子类用于对构建元数据做出反应的主要方法。
- mozbuild.codecoverage.chrome_map.generate_pp_info(path, topsrcdir)¶
mozbuild.codecoverage.lcov_rewriter 模块¶
- class mozbuild.codecoverage.lcov_rewriter.LcovFile(lcov_paths)¶
基类:
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=[])¶
基类:
object
- rewrite_files(in_paths, output_file, output_suffix)¶
- class mozbuild.codecoverage.lcov_rewriter.LcovRecord¶
基类:
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¶
基类:
object
- rewrite_record(record, pp_info)¶
- class mozbuild.codecoverage.lcov_rewriter.UrlFinder(chrome_map_path, appdir, gredir, extra_chrome_manifests)¶
基类:
object
- find_files(url)¶
- rewrite_url(url)¶
- exception mozbuild.codecoverage.lcov_rewriter.UrlFinderError¶
基类:
Exception
- mozbuild.codecoverage.lcov_rewriter.main()¶
mozbuild.codecoverage.manifest_handler 模块¶
mozbuild.codecoverage.packager 模块¶
- 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)¶