Branch Coverage

blib/lib/POE/Component/IRC/Plugin/Console.pm
Criterion Covered Total %
branch 9 34 26.4


line true false branch
13 0 1 if @_ & 1
47 0 9 if (ref $arg eq 'ARRAY') { }
0 9 elsif (ref $arg eq 'HASH') { }
4 5 elsif (ref $arg) { }
5 0 elsif (defined $arg) { }
66 0 5 if &looks_like_number($arg)
76 0 5 if $event eq "S_raw"
87 0 0 if $self->{'exit'}{$wheel_id} or not defined $self->{'wheels'}{$wheel_id}
88 0 0 unless $self->{'authed'}{$wheel_id}
113 1 0 if ($self->{'listener'}) { }
136 0 0 unless (defined $wheel)
158 0 0 if ($self->{'authed'}{$wheel_id} and lc $input->{'command'} eq "exit")
160 0 0 if (defined $self->{'wheels'}{$wheel_id})
166 0 0 if ($self->{'authed'}{$wheel_id})
171 0 0 if (lc $input->{'command'} eq "pass" and $input->{'params'}[0] eq $self->{'password'})
184 0 0 unless $self->{'exit'}{$wheel_id}
209 0 0 unless $self->{'listener'}