Condition Coverage

blib/lib/POE/Component/IRC/State.pm
Criterion Covered Total %
condition 71 140 50.7


and 3 conditions

line !l l&&!r l&&r condition
85 34 0 0 exists $self->{'whojoiners'} and not $self->{'whojoiners'}
34 0 0 exists $self->{'whojoiners'} and not $self->{'whojoiners'} and $self->isupport('UHNAMES')
107 0 4 14 !exists $self->{'whojoiners'} || $self->{'whojoiners'} and not exists $self->{'STATE'}{'Nicks'}{$unick}{'Real'}
352 0 0 64 length $chanmodes->[2] and length $alwaysarg
0 38 26 length $chanmodes->[2] and length $alwaysarg and $mode =~ /^(.[$alwaysarg]|\+[$chanmodes->[2]])/
359 0 61 3 length $statmodes and ($flag) = $mode =~ /\+([$statmodes])/
0 61 0 length $statmodes and ($flag) = $mode =~ /-([$statmodes])/
0 56 5 length $chanmodes->[0] and ($flag) = $mode =~ /\+([$chanmodes->[0]])/
0 52 4 length $chanmodes->[0] and ($flag) = $mode =~ /-([$chanmodes->[0]])/
0 40 12 length $chanmodes->[3] and ($flag) = $mode =~ /\+([^$chanmodes->[3]])/
0 36 4 length $chanmodes->[3] and ($flag) = $mode =~ /-([^$chanmodes->[3]])/
361 3 0 0 $self->{'STATE'}{'Nicks'}{$arg}{'CHANS'}{$uchan} and $self->{'STATE'}{'Nicks'}{$arg}{'CHANS'}{$uchan} =~ /$flag/
473 127 0 35 $status =~ /\Q$prefix->{$mode}\E/ and not $existing =~ /\Q$prefix->{$mode}\E/
478 53 0 1 length $existing and $existing =~ /$whatever/
516 142 0 35 $status =~ /\Q$prefix->{$mode}\E/ and not $existing =~ /\Q$prefix->{$mode}\E/
521 24 0 35 $existing and $existing =~ /$whatever/
526 55 2 2 $self->{'STATE'}{'Chans'}{$uchan}{'AWAY_SYNCH'} and $unick ne uc_irc($self->nick_name, $map)
527 1 0 1 $status =~ /G/ and not $self->{'STATE'}{'Nicks'}{$unick}{'Away'}
0 1 0 $status =~ /H/ and $self->{'STATE'}{'Nicks'}{$unick}{'Away'}
777 1 5 95 $self->_channel_exists($chan) and defined $self->{'CHANNEL_SYNCH'}{$uchan}
825 1 9 56 defined $unick and $self->_nick_exists($unick)
856 0 0 49 defined $result{'User'} and defined $result{'Host'}
878 0 0 16 exists $user->{'User'} and exists $user->{'Host'}
953 0 0 8 defined $chan and defined $mode
962 0 0 8 $self->_channel_exists($chan) and $mode
965 0 6 2 defined $self->{'STATE'}{'Chans'}{$uchan}{'Mode'} and $self->{'STATE'}{'Chans'}{$uchan}{'Mode'} =~ /$mode/
1014 2 0 1 $self->is_channel_mode_set($chan, 'l') and defined $self->{'STATE'}{'Chans'}{$uchan}{'ModeArgs'}{'l'}
1034 2 0 0 $self->is_channel_mode_set($chan, 'k') and defined $self->{'STATE'}{'Chans'}{$uchan}{'ModeArgs'}{'k'}
1069 0 0 11 defined $chan and defined $nick
1078 0 0 11 $self->_channel_exists($chan) and $self->_nick_exists($nick)
1086 0 0 4 defined $chan and defined $nick
1098 0 0 2 defined $chan and defined $nick
1110 0 0 2 defined $chan and defined $nick
1122 0 0 0 defined $chan and defined $nick
1134 0 0 0 defined $chan and defined $nick
1146 0 0 2 defined $chan and defined $mask
1275 0 0 0 defined $chan and defined $nick

or 2 conditions

line l !l condition
203 4 0 shift() || (return)
342 77 0 $self->isupport('PREFIX') || {'o', '@', 'v', '+'}
344 77 0 $self->isupport('CHANMODES') || ['beI', 'k', 'l', 'imnpstaqr']
452 35 0 $self->isupport('PREFIX') || {'o', '@', 'v', '+'}
470 1 53 $self->{'STATE'}{'Nicks'}{$unick}{'CHANS'}{$uchan} || ''
512 35 24 $self->{'STATE'}{'Nicks'}{$unick}{'CHANS'}{$uchan} || ''
513 59 0 $self->isupport('PREFIX') || {'o', '@', 'v', '+'}
676 33 0 $self->isupport('CHANMODES') || ['beI', 'k', 'l', 'imnpstaqr']
677 33 0 $self->isupport('PREFIX') || {'o', '@', 'v', '+'}
752 2 0 (split(//, $mode, 0))[0] || (return)

or 3 conditions

line l !l&&r !l&&!r condition
107 18 0 0 !exists $self->{'whojoiners'} || $self->{'whojoiners'}
284 61 2 1 not $mode =~ /\+[qoah]/ or $me ne uc_irc($arg, $map)
503 72 0 0 not exists $self->{'whojoiners'} or $self->{'whojoiners'}