Branch Coverage

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


line true false branch
14 0 1 if @_ & 1
48 0 9 if (ref $arg eq 'ARRAY') { }
0 9 elsif (ref $arg eq 'HASH') { }
4 5 elsif (ref $arg) { }
5 0 elsif (defined $arg) { }
67 0 5 if &looks_like_number($arg)
77 0 5 if $event eq 'S_raw'
88 0 0 if $self->{'exit'}{$wheel_id} or not defined $self->{'wheels'}{$wheel_id}
89 0 0 unless $self->{'authed'}{$wheel_id}
114 1 0 if ($self->{'listener'}) { }
137 0 0 unless (defined $wheel)
159 0 0 if ($self->{'authed'}{$wheel_id} and lc $input->{'command'} eq 'exit')
161 0 0 if (defined $self->{'wheels'}{$wheel_id})
167 0 0 if ($self->{'authed'}{$wheel_id})
172 0 0 if (lc $input->{'command'} eq 'pass' and $input->{'params'}[0] eq $self->{'password'})
185 0 0 unless $self->{'exit'}{$wheel_id}
210 0 0 unless $self->{'listener'}