Condition Coverage

blib/lib/Bot/BasicBot/Pluggable/Module/Infobot.pm
Criterion Covered Total %
condition 43 70 61.4


and 3 conditions

line !l l&&!r l&&r condition
138 0 65 0 $mess->{'channel'} ne 'msg' && $body =~ s/\s+\@\s+(\S+)[.]?\s*$//
139 0 0 65 $self->get('user_require_question') && !$is_priv
141 27 38 0 $body =~ s/$body_regexp// and $mess->{'address'} || $self->get('user_passive_answer')
2 0 36 $body =~ s/$body_regexp// and $mess->{'address'} || $self->get('user_passive_answer') and length $body >= $self->get('user_min_length')
2 0 36 $body =~ s/$body_regexp// and $mess->{'address'} || $self->get('user_passive_answer') and length $body >= $self->get('user_min_length') and length $body <= $self->get('user_max_length')
0 0 36 $body =~ s/$body_regexp// and $mess->{'address'} || $self->get('user_passive_answer') and length $body >= $self->get('user_min_length') and length $body <= $self->get('user_max_length') and not $body =~ /^(.*?)\s+(is|are)\s+(.*)$/i
150 4 4 28 not $literal and $factoid
8 28 0 not $literal and $factoid and $factoid =~ /\|/
209 23 1 0 $replace and $object =~ s/^\s*$nick,?\s*//i
221 22 0 1 $replace and not $also
232 10 9 4 $current and not $also
19 4 0 $current and not $also and $mess->{'address'}
10 9 2 $current and not $also
19 0 2 $current and not $also and not $mess->{'address'}
315 0 144 0 ref $_ && /DBM::Deep::Hash/
470 0 0 0 $max_items and $max_items < @entries

or 2 conditions

line l !l condition
113 65 0 $mess->{'body'} || ''
341 19 0 $is_are ||= 'is'

or 3 conditions

line l !l&&r !l&&!r condition
115 0 0 65 !defined($mess->{'channel'}) || $mess->{'channel'} eq 'msg'
141 30 6 2 $mess->{'address'} || $self->get('user_passive_answer')
171 0 0 0 $readdress || $mess->{'who'}
199 24 2 3 $mess->{'address'} or $self->get('user_passive_learn')
201 22 2 2 $body =~ /^(.*?)\s+(is)\s+(.*)$/i or $body =~ /^(.*?)\s+(are)\s+(.*)$/i
267 25 0 100 $_->{'alternate'} or $_->{'alt'}