Branch Coverage

blib/lib/IRC/Toolkit/Modes.pm
Criterion Covered Total %
branch 29 34 85.2


line true false branch
18 1 7 if (blessed $array and $array->isa('IRC::Mode::Set'))
21 0 8 unless ref $array and reftype $array eq 'ARRAY'
28 0 23 unless defined $flag and defined $mode
30 4 19 $flag eq $curflag ? :
31 19 4 if defined $param
34 7 1 if length $pstr
48 0 9 unless defined $modestr
52 1 8 if (my $isup = $args{'isupport_chanmodes'})
53 0 1 unless blessed $isup and $isup->can('always') and $isup->can('whenset')
63 4 5 if (index($modestr, ' ') > -1)
70 0 27 unless reftype($args{$_}) eq 'ARRAY'
80 25 32 if ($chunk eq '-' or $chunk eq '+')
86 22 10 if ($in eq '+') { }
87 19 3 if exists $param_always{$chunk} or exists $param_set{$chunk}
91 6 4 if exists $param_always{$chunk}
118 4 1 $flag eq '+' ? :
119 4 1 $param ? :