blob: 64e0a40f39768f31736ac00d3d2d458c2a46802c [file]
---
title: 'InstrumentedFilesInfo'
---
Contains information about source files and instrumentation metadata files for rule targets matched by [`--instrumentation_filter`](https://bazel.build/versions/8.6.0/reference/command-line-reference#flag--instrumentation_filter) for purposes of [code coverage data collection](https://bazel.build/versions/8.6.0/extending/rules#code_coverage). When coverage data collection is enabled, a manifest containing the combined paths in [`instrumented_files`](#instrumented_files) and [`metadata_files`](#metadata_files) are passed to the test action as inputs, with the manifest's path noted in the environment variable `COVERAGE_MANIFEST`. The metadata files, but not the source files, are also passed to the test action as inputs. When `InstrumentedFilesInfo` is returned by an [aspect](https://bazel.build/versions/8.6.0/rules/aspects)'s implementation function, any `InstrumentedFilesInfo` from the base rule target is ignored.
## Members
* [instrumented_files](#instrumented_files)
* [metadata_files](#metadata_files)
## instrumented_files
```
depset InstrumentedFilesInfo.instrumented_files
```
[`depset`](/versions/8.6.0/rules/lib/builtins/depset) of [`File`](/versions/8.6.0/rules/lib/builtins/File) objects representing instrumented source files for this target and its dependencies.
## metadata_files
```
depset InstrumentedFilesInfo.metadata_files
```
[`depset`](/versions/8.6.0/rules/lib/builtins/depset) of [`File`](/versions/8.6.0/rules/lib/builtins/File) objects representing coverage metadata files for this target and its dependencies. These files contain additional information required to generate LCOV-format coverage output after the code is executed, e.g. the `.gcno` files generated when `gcc` is run with `-ftest-coverage`.