Condition Coverage

blib/lib/AnyEvent/Stomper.pm
Criterion Covered Total %
condition 15 54 27.7


and 3 conditions

line !l l&&!r l&&r condition
204 20 12 0 defined $seconds and !&looks_like_number($seconds) || $seconds < 0
426 2 0 0 ref $args->[-1] eq 'CODE' and scalar @{$args;} % 2 > 0
485 1 0 1 $cmd->{'name'} eq 'SUBSCRIBE' and not defined $cmd->{'on_message'}
0 0 1 exists $ACK_CMDS{$cmd->{'name'}} and not defined $cmd->{'message'}
509 0 0 0 defined $self->{'reconnect_interval'} and $self->{'reconnect_interval'} > 0
880 0 0 0 $was_connected and defined $self->{'on_disconnect'}
915 0 0 0 not defined $err and @queued_commands
927 0 0 0 %subs and $err_code != 4

or 2 conditions

line l !l condition
79 3 12 $params{'host'} || 'localhost'
80 3 12 $params{'port'} || 61613
85 0 15 $params{'handle_params'} || {}
86 0 15 $params{'default_headers'} || {}
666 0 0 $receipt_headers->{'version'} || 1
667 0 0 $receipt_headers->{'session'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
204 4 4 4 !&looks_like_number($seconds) || $seconds < 0
566 0 0 0 exists $NEED_RECEIPT{$cmd->{'name'}} or defined $cmd_headers->{'receipt'}
573 0 0 0 not defined $cmd_headers->{'receipt'} or $cmd_headers->{'receipt'} eq 'auto'
715 0 0 0 $msg_headers->{'subscription'} || $msg_headers->{'destination'}
770 0 0 0 $msg_headers->{'subscription'} || $msg_headers->{'destination'}
819 0 0 0 $cmd_headers->{'id'} || $cmd_headers->{'destination'}