Condition Coverage

lib/Kafka/Consumer.pm
Criterion Covered Total %
condition 80 182 43.9


and 3 conditions

line !l l&&!r l&&r condition
264 480 594 0 exists $p{$_} and $self->{$_} = $p{$_}
271 7 1 151 $self->{'ClientId'} eq '' || defined &_STRING($self->{'ClientId'}) and not utf8::is_utf8($self->{'ClientId'})
273 1 9 141 defined $self->{'MaxWaitTime'} and defined &_NUMBER($self->{'MaxWaitTime'})
10 2 139 defined $self->{'MaxWaitTime'} and defined &_NUMBER($self->{'MaxWaitTime'}) and int $self->{'MaxWaitTime'} * 1000 >= 1
11 0 139 defined $self->{'MaxWaitTime'} and defined &_NUMBER($self->{'MaxWaitTime'}) and int $self->{'MaxWaitTime'} * 1000 >= 1 and int $self->{'MaxWaitTime'} * 1000 <= $Kafka::Consumer::MAX_INT32
275 13 0 126 _isbig($self->{'MinBytes'}) ? $self->{'MinBytes'} >= 0 : defined &_NONNEGINT($self->{'MinBytes'}) and $self->{'MinBytes'} <= $Kafka::Consumer::MAX_INT32
277 15 1 110 _isbig($self->{'MaxBytes'}) ? $self->{'MaxBytes'} > 0 : &_POSINT($self->{'MaxBytes'}) and $self->{'MaxBytes'} >= $Kafka::Consumer::MESSAGE_SIZE_OVERHEAD
16 0 110 _isbig($self->{'MaxBytes'}) ? $self->{'MaxBytes'} > 0 : &_POSINT($self->{'MaxBytes'}) and $self->{'MaxBytes'} >= $Kafka::Consumer::MESSAGE_SIZE_OVERHEAD and $self->{'MaxBytes'} <= $Kafka::Consumer::MAX_INT32
279 15 0 95 defined &_POSINT($self->{'MaxNumberOfOffsets'}) and $self->{'MaxNumberOfOffsets'} <= $Kafka::Consumer::MAX_INT32
334 0 7 5048 defined $topic and $topic eq '' || defined &_STRING($topic)
7 1 5047 defined $topic and $topic eq '' || defined &_STRING($topic) and not utf8::is_utf8($topic)
336 0 10 5037 defined $partition and &isint($partition)
10 0 5037 defined $partition and &isint($partition) and $partition >= 0
338 1 12 5024 defined $start_offset and _isbig($start_offset) && $start_offset >= 0 || defined &_NONNEGINT($start_offset)
340 12 1 5009 _isbig($max_size) || &_POSINT($max_size) and $max_size >= $Kafka::Consumer::MESSAGE_SIZE_OVERHEAD
13 0 5009 _isbig($max_size) || &_POSINT($max_size) and $max_size >= $Kafka::Consumer::MESSAGE_SIZE_OVERHEAD and $max_size <= $Kafka::Consumer::MAX_INT32
386 15018 0 0 $offset < $start_offset and not $_return_all
473 0 0 0 defined $time and _isbig($time) || &isint($time)
0 0 0 defined $time and _isbig($time) || &isint($time) and $time >= 0
519 0 0 0 defined $time and _isbig($time) || &isint($time)
0 0 0 defined $time and _isbig($time) || &isint($time) and $time >= 0
620 0 10 53 defined $time and _isbig($time) || &isint($time)
10 1 52 defined $time and _isbig($time) || &isint($time) and $time >= $Kafka::Consumer::RECEIVE_EARLIEST_OFFSET
622 14 0 36 &_POSINT($max_number) and $max_number <= $Kafka::Consumer::MAX_INT32
631 0 7 31 defined $topic and $topic eq '' || defined &_STRING($topic)
7 1 30 defined $topic and $topic eq '' || defined &_STRING($topic) and not utf8::is_utf8($topic)
633 0 10 20 defined $partition and &isint($partition)
10 0 20 defined $partition and &isint($partition) and $partition >= 0
722 0 0 0 defined $topic and $topic eq '' || defined &_STRING($topic)
0 0 0 defined $topic and $topic eq '' || defined &_STRING($topic) and not utf8::is_utf8($topic)
724 0 0 0 defined $partition and &isint($partition)
0 0 0 defined $partition and &isint($partition) and $partition >= 0
726 0 0 0 defined $offset and _isbig($offset) && $offset >= 0 || defined &_NONNEGINT($offset)
728 0 0 0 defined $group and $group eq '' || defined &_STRING($group)
0 0 0 defined $group and $group eq '' || defined &_STRING($group) and not utf8::is_utf8($group)
786 0 0 0 defined $topic and $topic eq '' || defined &_STRING($topic)
0 0 0 defined $topic and $topic eq '' || defined &_STRING($topic) and not utf8::is_utf8($topic)
788 0 0 0 defined $partition and &isint($partition)
0 0 0 defined $partition and &isint($partition) and $partition >= 0
790 0 0 0 defined $group and $group eq '' || defined &_STRING($group)
0 0 0 defined $group and $group eq '' || defined &_STRING($group) and not utf8::is_utf8($group)

or 2 conditions

line l !l condition
266 8 171 $self->{'ClientId'} //= 'consumer'

or 3 conditions

line l !l&&r !l&&!r condition
271 0 152 7 $self->{'ClientId'} eq '' || defined &_STRING($self->{'ClientId'})
334 0 5048 7 $topic eq '' || defined &_STRING($topic)
338 0 5024 12 _isbig($start_offset) && $start_offset >= 0 || defined &_NONNEGINT($start_offset)
340 0 5010 12 _isbig($max_size) || &_POSINT($max_size)
2 5022 0 not defined $max_size or _isbig($max_size) || &_POSINT($max_size) and $max_size >= $Kafka::Consumer::MESSAGE_SIZE_OVERHEAD and $max_size <= $Kafka::Consumer::MAX_INT32
360 5009 2 0 $max_size // $self->{'MaxBytes'}
5009 2 0 $max_size // $self->{'MaxBytes'}
402 0 0 0 $compression_codec == 1 or $compression_codec == 2
473 0 0 0 _isbig($time) || &isint($time)
519 0 0 0 _isbig($time) || &isint($time)
620 0 53 10 _isbig($time) || &isint($time)
622 2 50 0 not defined $max_number or &_POSINT($max_number) and $max_number <= $Kafka::Consumer::MAX_INT32
631 0 31 7 $topic eq '' || defined &_STRING($topic)
652 18 2 0 $max_number // $self->{'MaxNumberOfOffsets'}
722 0 0 0 $topic eq '' || defined &_STRING($topic)
726 0 0 0 _isbig($offset) && $offset >= 0 || defined &_NONNEGINT($offset)
728 0 0 0 $group eq '' || defined &_STRING($group)
786 0 0 0 $topic eq '' || defined &_STRING($topic)
790 0 0 0 $group eq '' || defined &_STRING($group)