BazelCon 2022 is coming November 16-17 to New York and online.
Register today!

coverage_common

Stay organized with collections Save and categorize content based on your preferences.
Helper functions to access coverage-related infrastructure.

Members

instrumented_files_info

InstrumentedFilesInfo coverage_common.instrumented_files_info(ctx, *, source_attributes=[], dependency_attributes=[], extensions=None)

Creates a new InstrumentedFilesInfo instance. Use this provider to communicate coverage-related attributes of the current build rule.

Parameters

Parameter Description
ctx required
The rule context.
source_attributes default = []
A list of attribute names which contain source files processed by this rule.
dependency_attributes default = []
A list of attribute names which might provide runtime dependencies (either code dependencies or runfiles).
extensions sequence of strings; or None; default = None
File extensions used to filter files from source_attributes. For example, 'js'. If not provided (or None), then all files from source_attributes will be added to instrumented files, if an empty list is provided, then no files from source attributes will be added.