Branch Coverage

blib/lib/POE/Component/IRC/Plugin/AutoJoin.pm
Criterion Covered Total %
branch 26 50 52.0


line true false branch
12 0 6 if @_ & 1
20 2 4 if (not $self->{'Channels'}) { }
2 2 elsif (ref $self->{'Channels'} eq 'ARRAY') { }
21 1 1 if ($irc->isa('POE::Component::IRC::State')) { }
26 0 0 $irc->is_channel_mode_set($chan, 'k') ? :
45 3 3 unless defined $self->{'Rejoin_delay'}
46 6 0 unless defined $self->{'NickServ_delay'}
67 5 0 if (not grep({$_->isa('POE::Component::IRC::Plugin::NickServID');} values %{$irc->plugin_list;})) { }
70 2 3 defined $key ? :
78 0 0 defined $key ? :
87 0 0 if ($self->{'alarm_ids'})
92 0 0 defined $key ? :
103 0 4 unless $self->{'Retry_when_banned'}
106 4 0 if defined $self->{'tried_keys'}{$lchan}
107 4 0 defined $key ? :
116 3 0 defined $_[3] ? :
119 2 1 if $mode eq '+k'
120 0 3 if $mode eq '-k'
130 0 11 if $joiner ne $irc->nick_name
133 11 0 if (defined $self->{'tried_keys'}{$lchan}) { }
150 4 0 if ($victim eq $irc->nick_name)
151 4 0 if ($self->{'RejoinOnKick'})
156 4 0 defined $self->{'Channels'}{$lchan} ? :
169 0 0 if $parter eq $irc->nick_name
178 15 0 if defined $key