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: Bytes

    Which 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: Bytes

    Which 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: Bytes

    The 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: Int32

    Contains 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: Bytes

    As 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: Bytes

    Described above.

Google::Devtools::Resultstore::V2::Coverage::FileCoverage

Describes code coverage for a particular file under test.

Inherits from Protobuf::Message.

Accessors

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

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

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.