Branch Coverage

lib/Kafka/Protocol.pm
Criterion Covered Total %
branch 56 104 53.8


line true false branch
651 0 0 if ($api_version >= 1)
703 0 0 $is_v1 ? :
710 0 0 if ($is_v1)
714 0 0 if ($is_v1)
887 0 98 $is_v2 ? :
0 98 $is_v1 ? :
906 0 98 $is_v2 ? :
919 0 98 if defined $data[$i]
968 0 5015 $is_v3 ? :
971 0 5015 if ($is_v3) { }
1050 0 5021 if ($is_v1 or $is_v2 or $is_v3)
1131 0 27 $is_v1 ? :
1132 0 27 $is_v1 ? :
1147 0 27 $is_v1 ? :
1224 0 23 $is_v1 ? :
1248 0 23 if ($is_v1) { }
1480 0 0 if ($is_v1)
1516 0 0 if ($is_v1)
1765 0 5021 if ($is_v1 or $is_v2 or $is_v3) { }
1834 10 25071 if (defined $_override_offset)
1852 0 25081 if ($is_v1_msg_format)
1857 25081 0 $Key_length == $NULL_BYTES_LENGTH ? :
1859 0 25081 $Value_length == $NULL_BYTES_LENGTH ? :
1861 6 25075 if (my $compression_codec = $Message->{'Attributes'} & $COMPRESSION_CODEC_MASK) { }
1863 3 3 if ($compression_codec == $Kafka::Protocol::COMPRESSION_GZIP) { }
2 1 elsif ($compression_codec == $Kafka::Protocol::COMPRESSION_SNAPPY) { }
1873 0 2 if ($header eq "\202SNAPPY\000")
1875 0 0 if ($x_compatversion == 1 and $x_version == 1) { }
1888 0 4 unless defined $decompressed
1927 4 10123 if ($compression_codec)
1932 0 10 $key_length ? :
10 0 $value_length ? :
0 10 $key_length ? :
10 0 $value_length ? :
1962 2 2 if ($compression_codec == $Kafka::Protocol::COMPRESSION_GZIP) { }
2 0 elsif ($compression_codec == $Kafka::Protocol::COMPRESSION_SNAPPY) { }
2006 0 25154 $key_length ? :
25154 0 $value_length ? :
0 25154 $key_length ? :
25154 0 $value_length ? :
2066 2 25085 if $MessageSetSize < 22
2091 0 25085 if ($is_v1_msg_format and $MessageSetSize < 30)
2096 0 25085 $is_v1_msg_format ? :
2098 0 25085 $is_v1_msg_format ? :
2108 0 25085 if $Key_length != $NULL_BYTES_LENGTH
2110 25083 2 if ($bin_stream_length >= $response->{'stream_offset'} + 4) { }
2111 0 25083 if $Key_length != $NULL_BYTES_LENGTH
2128 25083 0 if $Value_length != $NULL_BYTES_LENGTH
2130 25081 2 if ($bin_stream_length >= $response->{'stream_offset'}) { }
2131 25081 0 if $Value_length != $NULL_BYTES_LENGTH
2140 25081 4 if ($local_template) { }
2159 129 30660 if ($string eq '') { }