Condition Coverage

blib/lib/POE/Component/IRC/Service/P10.pm
Criterion Covered Total %
condition 36 256 14.0


and 3 conditions

line !l l&&!r l&&r condition
57 0 0 1 $alias and $hash
65 1 0 0 defined $hash->{'EventMode'} and $hash->{'EventMode'} == 0
67 1 0 0 defined $hash->{'Reconnect'} and $hash->{'Reconnect'} == 1
69 1 0 0 defined $hash->{'Debug'} and $hash->{'Debug'} == 1
155 0 1 0 $hash->{'ServerNumeric'} and $hash->{'ServerName'}
0 1 0 $hash->{'ServerNumeric'} and $hash->{'ServerName'} and $hash->{'RemoteServer'}
0 1 0 $hash->{'ServerNumeric'} and $hash->{'ServerName'} and $hash->{'RemoteServer'} and $hash->{'Password'}
0 1 0 $hash->{'ServerNumeric'} and $hash->{'ServerName'} and $hash->{'RemoteServer'} and $hash->{'Password'} and $hash->{'ServerPort'}
440 0 1 0 defined $authname and $umode =~ /r/
604 0 0 0 defined $heap->{'his_servername'} and defined $heap->{'his_serverinfo'}
0 0 0 defined $heap->{'his_servername'} and defined $heap->{'his_serverinfo'} and not $heap->{'State'}->is_operator($who)
747 0 0 0 defined $numeric and defined $to
0 0 0 defined $numeric and defined $to and defined $message
765 0 0 0 defined $numeric and defined $chan
0 0 0 defined $numeric and defined $chan and defined $nick
876 0 0 0 defined $numeric and defined $one
905 0 0 0 defined $numeric and defined $arg
920 0 0 0 defined $one and defined $two
934 0 0 0 defined $numeric and defined $one
0 0 0 defined $numeric and defined $one and defined $two
948 0 0 0 defined $numeric and defined $to
0 0 0 defined $numeric and defined $to and defined $message
1176 0 0 0 $server eq $self->{'servers_numeric'}{$_}{'Link'} and not defined $self->{'servers_numeric'}{$server}{'ToDelete'}
1293 0 0 0 defined $currentumode and $currentumode
1432 0 0 0 $modes =~ /o/ and $self->{'channels'}{$channel}{'Members'}{$_} > 1
1436 0 0 0 $modes =~ /v/ and $self->{'channels'}{$channel}{'Members'}{$_} > 0
1489 0 0 0 $l > $k and $k != -1
1496 0 0 0 $l > $k and $k == -1
1501 0 0 0 $k > $l and $l != -1
1508 0 0 0 $k > $l and $l == -1
1758 0 0 0 defined $self->{'channels'}{$channel}{'Members'}{$numeric} and $self->{'channels'}{$channel}{'Members'}{$numeric} >= 2
1770 0 0 0 defined $self->{'channels'}{$channel}{'Members'}{$numeric} and $self->{'channels'}{$channel}{'Members'}{$numeric} == 2
1781 0 0 0 defined $self->{'bynumeric'}{$numeric}{'UMode'} and $self->{'bynumeric'}{$numeric}{'UMode'} =~ /o/
1897 0 0 1 defined $numeric and defined $channel

or 2 conditions

line l !l condition
1029 2 1 shift() || 0
1030 1 2 shift() || 2
1068 0 0 shift() || (return undef)
1088 1 0 shift() || (return undef)
1115 7 0 shift() || (return undef)
1125 0 0 shift() || (return 0)
1138 0 0 shift() || (return undef)
1172 0 0 shift() || (return 0)
1192 1 0 $_[0] || (return 0)
1193 1 0 $_[1] || (return 0)
1194 1 0 $_[2] || (return 0)
1195 1 0 $_[3] || (return 0)
1196 1 0 $_[4] || (return 0)
1198 1 0 $_[6] || undef
1199 1 0 $_[7] || undef
1200 1 0 $_[8] || undef
1231 0 0 shift() || (return 0)
1247 0 0 shift() || (return 0)
1248 0 0 shift() || (return 0)
1261 0 0 $_[0] || (return 0)
1262 0 0 $_[1] || (return 0)
1270 0 0 $_[0] || (return 0)
1271 0 0 $_[1] || (return 0)
1303 1 0 $_[0] || (return 0)
1304 1 0 $_[1] || (return 0)
1322 0 0 $_[0] || (return 0)
1323 0 0 $_[1] || (return 0)
1337 0 0 u_irc($_[0]) || (return 0)
1338 0 0 $_[1] || (return 0)
1339 0 0 $_[2] || (return 0)
1340 0 0 $_[3] || (return 0)
1350 0 0 u_irc($_[0]) || (return 0)
1360 0 0 u_irc($_[0]) || (return 0)
1361 0 0 $_[1] || (return 0)
1362 0 0 $_[2] || (return 0)
1422 0 0 u_irc($_[0]) || (return 0)
1423 0 0 $_[1] || (return 0)
1446 0 0 u_irc($_[0]) || (return 0)
1447 0 0 $_[1] || (return 0)
1448 0 0 $_[2] || (return 0)
1449 0 0 $_[3] || (return 0)
1659 0 0 uc $_[0] || (return undef)
1666 0 0 shift() || (return undef)
1673 0 0 shift() || (return undef)
1680 0 0 shift() || (return 0)
1695 0 0 shift() || (return undef)
1710 1 0 u_irc($_[0]) || (return undef)
1717 0 0 $_[0] || (return undef)
1724 0 0 shift() || (return undef)
1745 1 0 u_irc($_[0]) || (return undef)
1755 0 0 u_irc($_[0]) || (return 0)
1756 0 0 $_[1] || (return 0)
1767 0 0 u_irc($_[0]) || (return 0)
1768 0 0 $_[1] || (return 0)
1779 0 0 $_[0] || (return 0)
1790 0 0 $_[0] || (return undef)
1797 0 0 u_irc($_[0]) || (return undef)
1804 0 0 $_[0] || (return undef)
1838 0 0 u_irc($_[0]) || (return undef)
1851 0 0 u_irc($_[0]) || (return undef)
1858 0 0 u_irc($_[0]) || (return undef)
1865 0 0 u_irc($_[0]) || (return undef)
1872 0 0 $_[0] || (return undef)
1873 0 0 $_[1] || 2
1884 0 0 $_[0] || (return undef)

or 3 conditions

line l !l&&r !l&&!r condition
161 0 0 1 $hash->{'ServerNumeric'} < 0 or $hash->{'ServerNumeric'} > 4095
216 22 1 1 $heap->{'sessions'}{$sender}{'refcnt'}++ or $session == $sender
437 0 0 1 $umode =~ /^\+/ or not defined $umode
438 1 0 0 not defined $authname or $umode =~ /r/
439 0 0 1 defined $authname or not $umode =~ /r/
1144 0 0 0 $char eq '+' or $char eq '-'
1197 1 0 0 $_[5] || time
1770 0 0 0 defined $self->{'channels'}{$channel}{'Members'}{$numeric} and $self->{'channels'}{$channel}{'Members'}{$numeric} == 2 or $self->{'channels'}{$channel}{'Members'}{$numeric} == 3