Condition Coverage

blib/lib/POE/Component/IRC/State.pm
Criterion Covered Total %
condition 70 140 50.0


and 3 conditions

line !l l&&!r l&&r condition
84 34 0 0 exists $self->{'whojoiners'} and not $self->{'whojoiners'}
34 0 0 exists $self->{'whojoiners'} and not $self->{'whojoiners'} and $self->isupport("UHNAMES")
106 0 3 15 !exists $self->{'whojoiners'} || $self->{'whojoiners'} and not exists $self->{'STATE'}{'Nicks'}{$unick}{'Real'}
351 0 0 64 length $chanmodes->[2] and length $alwaysarg
0 38 26 length $chanmodes->[2] and length $alwaysarg and $mode =~ /^(.[$alwaysarg]|\+[$chanmodes->[2]])/
358 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]])/
360 3 0 0 $self->{'STATE'}{'Nicks'}{$arg}{'CHANS'}{$uchan} and $self->{'STATE'}{'Nicks'}{$arg}{'CHANS'}{$uchan} =~ /$flag/
472 127 0 35 $status =~ /\Q$prefix->{$mode}\E/ and not $existing =~ /\Q$prefix->{$mode}\E/
477 53 0 1 length $existing and $existing =~ /$whatever/
515 147 0 36 $status =~ /\Q$prefix->{$mode}\E/ and not $existing =~ /\Q$prefix->{$mode}\E/
520 25 0 36 $existing and $existing =~ /$whatever/
525 57 2 2 $self->{'STATE'}{'Chans'}{$uchan}{'AWAY_SYNCH'} and $unick ne uc_irc($self->nick_name, $map)
526 1 0 1 $status =~ /G/ and not $self->{'STATE'}{'Nicks'}{$unick}{'Away'}
0 1 0 $status =~ /H/ and $self->{'STATE'}{'Nicks'}{$unick}{'Away'}
776 0 5 96 $self->_channel_exists($chan) and defined $self->{'CHANNEL_SYNCH'}{$uchan}
824 1 9 56 defined $unick and $self->_nick_exists($unick)
855 0 0 49 defined $result{'User'} and defined $result{'Host'}
877 0 0 16 exists $user->{'User'} and exists $user->{'Host'}
952 0 0 8 defined $chan and defined $mode
961 0 0 8 $self->_channel_exists($chan) and $mode
964 0 6 2 defined $self->{'STATE'}{'Chans'}{$uchan}{'Mode'} and $self->{'STATE'}{'Chans'}{$uchan}{'Mode'} =~ /$mode/
1013 2 0 1 $self->is_channel_mode_set($chan, "l") and defined $self->{'STATE'}{'Chans'}{$uchan}{'ModeArgs'}{'l'}
1033 2 0 0 $self->is_channel_mode_set($chan, "k") and defined $self->{'STATE'}{'Chans'}{$uchan}{'ModeArgs'}{'k'}
1068 0 0 11 defined $chan and defined $nick
1077 0 0 11 $self->_channel_exists($chan) and $self->_nick_exists($nick)
1085 0 0 4 defined $chan and defined $nick
1097 0 0 2 defined $chan and defined $nick
1109 0 0 2 defined $chan and defined $nick
1121 0 0 0 defined $chan and defined $nick
1133 0 0 0 defined $chan and defined $nick
1145 0 0 2 defined $chan and defined $mask
1274 0 0 0 defined $chan and defined $nick

or 2 conditions

line l !l condition
202 3 0 shift() || (return)
341 77 0 $self->isupport('PREFIX') || {'o', '@', 'v', '+'}
343 77 0 $self->isupport('CHANMODES') || ['beI', 'k', 'l', 'imnpstaqr']
451 35 0 $self->isupport('PREFIX') || {'o', '@', 'v', '+'}
469 1 53 $self->{'STATE'}{'Nicks'}{$unick}{'CHANS'}{$uchan} || ''
511 36 25 $self->{'STATE'}{'Nicks'}{$unick}{'CHANS'}{$uchan} || ''
512 61 0 $self->isupport('PREFIX') || {'o', '@', 'v', '+'}
675 33 0 $self->isupport('CHANMODES') || ['beI', 'k', 'l', 'imnpstaqr']
676 33 0 $self->isupport('PREFIX') || {'o', '@', 'v', '+'}
751 2 0 (split(//, $mode, 0))[0] || (return)

or 3 conditions

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