NAME
Google::Devtools::Resultstore::V2::Coverage - Compiled Protocol Buffers messages for google/devtools/resultstore/v2/coverage.proto
SYNOPSIS
use Google::Devtools::Resultstore::V2::Coverage;
my $msg = Google::Devtools::Resultstore::V2::Coverage::LineCoverage->new({
instrumented_lines => $instrumented_lines,
executed_lines => $executed_lines,
});
# Read or update a field
my $val = $msg->instrumented_lines();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Devtools::Resultstore::V2::Coverage::LineCoverage->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/devtools/resultstore/v2/coverage.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Devtools::Resultstore::V2::Coverage::LineCoverage
Describes line coverage for a file
Inherits from Protobuf::Message.
Accessors
$msg->instrumented_lines()/$msg->instrumented_lines($value)Type:
BytesWhich source lines in the file represent the start of a statement that was instrumented to detect whether it was executed by the test.
This is a bitfield where i-th bit corresponds to the i-th line. Divide line number by 8 to get index into byte array. Mod line number by 8 to get bit number (0 = LSB, 7 = MSB).
A 1 denotes the line was instrumented. A 0 denotes the line was not instrumented.
$msg->executed_lines()/$msg->executed_lines($value)Type:
BytesWhich of the instrumented source lines were executed by the test. Should include lines that were not instrumented.
This is a bitfield where i-th bit corresponds to the i-th line. Divide line number by 8 to get index into byte array. Mod line number by 8 to get bit number (0 = LSB, 7 = MSB).
A 1 denotes the line was executed. A 0 denotes the line was not executed.
Google::Devtools::Resultstore::V2::Coverage::BranchCoverage
Describes branch coverage for a file
Inherits from Protobuf::Message.
Accessors
$msg->branch_present()/$msg->branch_present($value)Type:
BytesThe field branch_present denotes the lines containing at least one branch.
This is a bitfield where i-th bit corresponds to the i-th line. Divide line number by 8 to get index into byte array. Mod line number by 8 to get bit number (0 = LSB, 7 = MSB).
A 1 denotes the line contains at least one branch. A 0 denotes the line contains no branches.
$msg->branches_in_line()/$msg->branches_in_line($value)Type:
Int32Contains the number of branches present, only for the lines which have the corresponding bit set in branch_present, in a relative order ignoring lines which do not have any branches.
$msg->executed()/$msg->executed($value)Type:
BytesAs each branch can have any one of the following three states: not executed, executed but not taken, executed and taken.
This is a bitfield where i-th bit corresponds to the i-th branch. Divide branch number by 8 to get index into byte array. Mod branch number by 8 to get bit number (0 = LSB, 7 = MSB).
i-th bit of the following two byte arrays are used to denote the above mentioned states.
not executed: i-th bit of executed == 0 && i-th bit of taken == 0 executed but not taken: i-th bit of executed == 1 && i-th bit of taken == 0 executed and taken: i-th bit of executed == 1 && i-th bit of taken == 1
$msg->taken()/$msg->taken($value)Type:
BytesDescribed above.
Google::Devtools::Resultstore::V2::Coverage::FileCoverage
Describes code coverage for a particular file under test.
Inherits from Protobuf::Message.
Accessors
$msg->path()/$msg->path($value)Type:
StringPath of source file within the SourceContext of this Invocation.
$msg->line_coverage()/$msg->line_coverage($value)Type:
Message(Google::Devtools::Resultstore::V2::Coverage::LineCoverage)Details of lines in a file for calculating line coverage.
$msg->branch_coverage()/$msg->branch_coverage($value)Type:
Message(Google::Devtools::Resultstore::V2::Coverage::BranchCoverage)Details of branches in a file for calculating branch coverage.
Google::Devtools::Resultstore::V2::Coverage::ActionCoverage
Describes code coverage for a build or test Action. This is used to store baseline coverage for build Actions and test coverage for test Actions.
Inherits from Protobuf::Message.
Accessors
$msg->file_coverages()/$msg->file_coverages($value)Type:
Message(Google::Devtools::Resultstore::V2::Coverage::FileCoverage)List of coverage info for all source files that the TestResult covers.
Google::Devtools::Resultstore::V2::Coverage::AggregateCoverage
Describes aggregate code coverage for a collection of build or test Actions. A line or branch is covered if and only if it is covered in any of the build or test actions.
Inherits from Protobuf::Message.
Accessors
$msg->file_coverages()/$msg->file_coverages($value)Type:
Message(Google::Devtools::Resultstore::V2::Coverage::FileCoverage)Aggregated coverage info for all source files that the actions cover.
SEE ALSO
Protobuf, Protobuf::Message, Google::Devtools::Resultstore::V2::Coverage::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.