line |
true |
false |
branch |
222
|
20 |
88 |
unless &_INSTANCE($self->{'Connection'}, 'Kafka::Connection') |
224
|
8 |
80 |
unless $self->{'ClientId'} eq '' || defined &_STRING($self->{'ClientId'}) and not utf8::is_utf8($self->{'ClientId'}) |
226
|
0 |
70 |
unless defined &_NUMBER($self->{'Timeout'}) and int $self->{'Timeout'} * 1000 >= 1 and int $self->{'Timeout'} * 1000 <= $Kafka::Producer::MAX_INT32 |
229
|
10 |
58 |
unless defined $required_acks and &isint($required_acks) and $required_acks == $Kafka::Producer::NOT_SEND_ANY_RESPONSE || $required_acks == $Kafka::Producer::WAIT_WRITTEN_TO_LOCAL_LOG || $required_acks == $Kafka::Producer::BLOCK_UNTIL_IS_COMMITTED |
320
|
8 |
5062 |
unless defined $topic and $topic eq '' || defined &_STRING($topic) and not utf8::is_utf8($topic) |
322
|
10 |
5052 |
unless defined $partition and &isint($partition) and $partition >= 0 |
324
|
5 |
5047 |
unless defined &_STRING($messages) or &_ARRAY($messages) |
326
|
6 |
22 |
unless not defined $keys or defined &_STRING($keys) or &_ARRAY($keys) |
329
|
12 |
3 |
unless not defined $compression_codec or $known_compression_codecs{$compression_codec} |
330
|
0 |
0 |
unless not defined $timestamps or defined &_POSINT($timestamps) or &_ARRAY($timestamps) |
333
|
8 |
5021 |
unless ref $messages |
335
|
9 |
10033 |
unless defined $message and $message eq '' || defined &_STRING($message) && !utf8::is_utf8($message) |
341
|
0 |
5020 |
if (&_ARRAY($keys)) { } |
|
1 |
5019 |
elsif (defined $keys) { } |
343
|
0 |
0 |
unless scalar @$keys == scalar @$messages |
347
|
0 |
0 |
unless not defined $key or $key eq '' or defined &_STRING($key) and not utf8::is_utf8($key) |
352
|
1 |
0 |
unless $keys eq '' or defined &_STRING($keys) and not utf8::is_utf8($keys) |
362
|
0 |
5019 |
if (&_ARRAY($timestamps)) { } |
|
0 |
5019 |
elsif (defined $timestamps) { } |
364
|
0 |
0 |
unless scalar @$timestamps == scalar @$messages |
368
|
0 |
0 |
unless not defined $ts or defined &_POSINT($ts) |
374
|
0 |
0 |
unless defined &_POSINT($timestamps) |
399
|
0 |
5019 |
if (defined $compression_codec and $compression_codec == $Kafka::Producer::COMPRESSION_LZ4 or defined $timestamps) |
405
|
10032 |
0 |
defined $common_key ? : |
|
0 |
0 |
defined $common_ts ? : |
|
0 |
10032 |
$use_ts ? : |