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
330 0 0 0 not $self->background_function and $params->{'background_activity'}
332 0 0 0 not $self->message_function and $params->{'message_callback'}
533 0 0 0 defined $background_subroutine and $last_background + $time_between_background_routines < time
642 86 92 0 defined $self->forum_join_time->{$from} and $self->forum_join_time->{$from} > $time_now - $grace_period
664 0 0 160 defined $resource and $resource eq $self->resource
674 6 0 12 $#aliases_to_respond_to >= 0 and $type eq 'groupchat'
873 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
860 22 2 $messages_this_hour || 0
880 1 0 $mode || 0

or 3 conditions

line l !l&&r !l&&!r condition
317 0 0 2 $params->{'background_activity'} or $params->{'message_callback'}
413 0 0 2 not defined $auth_result[0] or $auth_result[0] ne 'ok'
642 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
645 0 0 0 $self->forum_join_time->{$from} || 'undef' . " > $time_now - $grace_period"