Condition Coverage

lib/Kafka/Protocol.pm
Criterion Covered Total %
condition 26 63 41.2


and 3 conditions

line !l l&&!r l&&r condition
1944 10048 6 25084 $MessageSetSize and $$i_ref < $data_array_size
2171 25088 0 0 $is_v1_msg_format and $MessageSetSize < 30

or 2 conditions

line l !l condition
1844 1 3 $uncompressed //= ''
1877 0 7 'Kafka::Protocol'->debug_level // !1
2014 0 25164 $Timestamp //= -1

or 3 conditions

line l !l&&r !l&&!r condition
703 0 0 0 $api_version //= $DEFAULT_APIVERSION
889 0 0 98 $api_version //= $DEFAULT_APIVERSION
1030 0 0 5021 $api_version //= $DEFAULT_APIVERSION
1056 0 0 5021 $is_v1 or $is_v2
0 0 5021 $is_v1 or $is_v2 or $is_v3
1228 18 0 5 $api_version //= $DEFAULT_APIVERSION
1749 18 0 10262 $request_ref->{'ApiVersion'} // $DEFAULT_APIVERSION
1771 0 0 5021 $is_v1 or $is_v2
0 0 5021 $is_v1 or $is_v2 or $is_v3
1869 1 3 0 $compressed_data //= pack('a[8]L>L>', $XERIAL_SNAPPY_MAGIC_HEADER, $XERIAL_SNAPPY_FILE_VERSION, $XERIAL_SNAPPY_FILE_VERSION)
1891 3 0 0 _snappy_xerial_decompress($data) // _error($Kafka::Protocol::ERROR_COMPRESSION, 'Unable to decompress snappy compressed data')
1897 0 0 0 &Compress::LZ4Frame::decompress($data) // _error($Kafka::Protocol::ERROR_COMPRESSION, 'Unable to decompress LZ4 compressed data')
1915 2 0 0 gzip($data) // _error($Kafka::Protocol::ERROR_COMPRESSION, 'Unable to compress gzip data')
1918 2 0 0 _snappy_xerial_compress($data) // _error($Kafka::Protocol::ERROR_COMPRESSION, 'Unable to compress snappy data')
1923 0 0 0 &Compress::LZ4Frame::compress_checksum($data) // _error($Kafka::Protocol::ERROR_COMPRESSION, 'Unable to compress LZ4 data')
2015 25164 0 0 $Attributes //= $Kafka::Protocol::COMPRESSION_NONE
2109 7 0 25147 $compression_codec // $Kafka::Protocol::COMPRESSION_NONE