> ## Documentation Index
> Fetch the complete documentation index at: https://bazel-pr-29840.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AnalysisTestResultInfo

Encapsulates the result of analyis-phase testing. Build targets which return an instance of this provider signal to the build system that it should generate a 'stub' test executable which generates the equivalent test result. Analysis test rules (rules created with `analysis_test=True` **must** return an instance of this provider, and non-analysis-phase test rules **cannot** return this provider.

## Members

* [AnalysisTestResultInfo](#AnalysisTestResultInfo)
* [message](#message)
* [success](#success)

## AnalysisTestResultInfo

```
AnalysisTestResultInfo AnalysisTestResultInfo(success, message)
```

The `AnalysisTestResultInfo` constructor.

### Parameters

| Parameter | Description                                                                                                                                   |
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `success` | [bool](../core/bool); required  If true, then the analysis-phase test represented by this target should pass. If false, the test should fail. |
| `message` | [string](../core/string); required  A descriptive message containing information about the test and its success/failure.                      |

## message

```
string AnalysisTestResultInfo.message
```

A descriptive message containing information about the test and its success/failure.

## success

```
bool AnalysisTestResultInfo.success
```

If true, then the analysis-phase test represented by this target passed. If false, the test failed.
