Condition Coverage

blib/lib/Net/Jabber/Bot.pm
Criterion Covered Total %
condition 12 37 32.4


and 3 conditions

line !l l&&!r l&&r condition
334 0 0 0 not $self->background_function and $params->{'background_activity'}
336 0 0 0 not $self->message_function and $params->{'message_callback'}
538 0 0 0 defined $background_subroutine and $last_background + $time_between_background_routines < time
647 86 92 0 defined $self->forum_join_time->{$from} and $self->forum_join_time->{$from} > $time_now - $grace_period
668 0 0 160 defined $resource and $resource eq $self->resource
678 6 0 12 $#aliases_to_respond_to >= 0 and $type eq 'groupchat'
887 0 0 1 $self->safety_mode && $self->message_delay >= 0.2 && $self->max_message_size <= 1000 && $self->max_messages_per_hour <= 166 && $self->ignore_self_messages

or 2 conditions

line l !l condition
874 22 2 $messages_this_hour || 0
894 1 0 $mode || 0

or 3 conditions

line l !l&&r !l&&!r condition
328 0 0 2 $params->{'background_activity'} or $params->{'message_callback'}
418 0 0 2 not defined $auth_result[0] or $auth_result[0] ne 'ok'
647 0 0 178 $self->connect_time > $time_now - $grace_period or defined $self->forum_join_time->{$from} and $self->forum_join_time->{$from} > $time_now - $grace_period
650 0 0 0 $self->forum_join_time->{$from} || 'undef' . " > $time_now - $grace_period"