Condition Coverage

blib/lib/Bot/IRC.pm
Criterion Covered Total %
condition 23 93 24.7


and 3 conditions

line !l l&&!r l&&r condition
23 1 0 16 ref $self->{'connect'} eq "HASH" and $self->{'connect'}{'server'}
50 0 16 0 $self->{'send_user_nick'} ne "on_connect" and $self->{'send_user_nick'} ne "on_parent"
16 0 0 $self->{'send_user_nick'} ne "on_connect" and $self->{'send_user_nick'} ne "on_parent" and $self->{'send_user_nick'} ne "on_reply"
148 0 0 0 not ref $_->{'timing'} and ($time - $session->{'start'}) % $_->{'timing'} == 0
0 0 0 ref $_->{'timing'} and $time % 60 == 0
0 0 0 ref $_->{'timing'} and $time % 60 == 0 and $_->{'timing'}->match($time)
262 0 0 0 $charset and $charset eq $self->{'encoding'}
266 0 0 0 $line =~ /^:\S+\s\d{3}\s/u and @{$self->{'numerics'};} < 100
314 0 0 0 $self->{'in'}{'forum'} and $self->{'in'}{'forum'} eq $self->{'nick'}
352 0 0 0 $m->{'passwd'} and $passwd
0 0 0 $m->{'passwd'} and $passwd and $m->{'passwd'} eq $passwd
420 0 0 0 ref $hook->{'when'}{$type} eq "Regexp" and $self->{'in'}{$type}
0 0 0 ref $hook->{'when'}{$type} eq "Regexp" and $self->{'in'}{$type} and $self->{'in'}{$type} =~ /$hook->{'when'}{$type}/u
0 0 0 ref $hook->{'when'}{$type} eq "CODE" and $hook->{'when'}{$type}->($self, $self->{'in'}{$type}, {%{$self->{'in'};}})
0 0 0 defined $self->{'in'}{$type} and defined $hook->{'when'}{$type}
0 0 0 defined $self->{'in'}{$type} and defined $hook->{'when'}{$type} and $self->{'in'}{$type} eq $hook->{'when'}{$type}
652 0 0 0 !@_ && $self->{'connect'}{'join'}

or 2 conditions

line l !l condition
25 4 12 $self->{'spawn'} ||= 2
26 0 16 $self->{'encoding'} //= "UTF-8"
28 4 12 $self->{'connect'}{'nick'} //= "bot"
29 4 12 $self->{'connect'}{'name'} //= "Yet Another IRC Bot"
30 4 12 $self->{'connect'}{'port'} ||= 6667
32 0 16 $self->{'disconnect'} //= sub {
34 4 12 $self->{'daemon'} //= {}
46 0 16 $self->{'send_user_nick'} ||= "on_parent"
515 1 2 $attr // {}

or 3 conditions

line l !l&&r !l&&!r condition
35 4 12 0 $self->{'daemon'}{'name'} //= $self->{'connect'}{'nick'}
36 4 12 0 $self->{'daemon'}{'pid_file'} //= $self->{'daemon'}{'name'} . ".pid"
291 0 0 0 $self->{'in'}{'command'} eq "JOIN" or $self->{'in'}{'command'} eq "PART"
319 0 0 0 $self->{'in'}{'text'} =~ s/^\s*\b$self->{'nick'}\b[\s\W]*//iu or $self->{'in'}{'text'} =~ s/[\s\W]*\b$self->{'nick'}\b[\s\W]*$//iu
0 0 0 $self->{'in'}{'text'} =~ s/^\s*\b$self->{'nick'}\b[\s\W]*//iu or $self->{'in'}{'text'} =~ s/[\s\W]*\b$self->{'nick'}\b[\s\W]*$//iu or $self->{'in'}{'private'}
332 0 0 0 $self->{'helps'}{$1} || "Couldn't find the help topic: $1."
420 0 0 0 ref $hook->{'when'}{$type} eq "Regexp" and $self->{'in'}{$type} and $self->{'in'}{$type} =~ /$hook->{'when'}{$type}/u or ref $hook->{'when'}{$type} eq "CODE" and $hook->{'when'}{$type}->($self, $self->{'in'}{$type}, {%{$self->{'in'};}})
0 0 0 ref $hook->{'when'}{$type} eq "Regexp" and $self->{'in'}{$type} and $self->{'in'}{$type} =~ /$hook->{'when'}{$type}/u or ref $hook->{'when'}{$type} eq "CODE" and $hook->{'when'}{$type}->($self, $self->{'in'}{$type}, {%{$self->{'in'};}}) or defined $self->{'in'}{$type} and defined $hook->{'when'}{$type} and $self->{'in'}{$type} eq $hook->{'when'}{$type}