coverage_common

Helper functions for Starlark to access coverage-related infrastructure.

instrumented_files_info

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

Creates a new execution info provider. Use this provider to specify specialenvironments requirements needed to run tests.

Parameters

Parameter Description
ctx

ctx

The rule context.

source_attributes

sequence

A list of attribute names which contain source files for this rule.

dependency_attributes

sequence

A list of attribute names which contain dependencies that might include instrumented files.

extensions

sequence

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.