Condition Coverage

blib/lib/IRC/Utils.pm
Criterion Covered Total %
condition 35 62 56.4


and 3 conditions

line !l l&&!r l&&r condition
322 0 1 0 defined $first and defined $second
354 0 0 6 length $$chanmodes[0] and length $$chanmodes[1]
0 0 6 length $$chanmodes[0] and length $$chanmodes[1] and length $statmodes
0 2 4 length $$chanmodes[0] and length $$chanmodes[1] and length $statmodes and $char =~ /[$statmodes$$chanmodes[0]$$chanmodes[1]]/
359 0 2 4 length $$chanmodes[2] and $action eq '+'
2 4 0 length $$chanmodes[2] and $action eq '+' and $char =~ /[$$chanmodes[2]]/
380 0 1 1 not $arg =~ /!/ and $arg =~ /@/
400 0 4 0 defined $line and length $line
404 24 24 0 $mode =~ /^(\+|-)$/ and !$action || $mode ne $action
409 9 6 24 $mode ne '+' and $mode ne '-'
431 0 2 0 defined $nickname and length $nickname
441 0 3 0 defined $channel and length $channel
451 0 2 0 defined $masks and defined $matches
469 0 4 0 defined $mask and length $mask
470 0 4 0 defined $match and length $match

or 2 conditions

line l !l condition
438 0 3 shift() || ['#', '&']

or 3 conditions

line l !l&&r !l&&!r condition
336 2 1 0 $arg =~ /^[-+]/ or $count == 0
347 1 1 4 $char eq '+' or $char eq '-'
404 4 5 15 !$action || $mode ne $action
548 0 2 6 exists $seen{$seen} or exists $in_after{$seen}
556 0 2 10 exists $seen{$seen} or exists $in_before{$seen}