Branch Coverage

blib/lib/Params/Filter.pm
Criterion Covered Total %
branch 79 92 85.8


line true false branch
238 21 30034 unless $args and ref($args) =~ /hash/iu
252 5 11 unless (@$ok)
258 2 6 unless exists $unfiltered->{$_}
270 2 4 unless exists $unfiltered->{$_}
274 4 10 if $exclusions->{$_}
284 2 6 unless exists $unfiltered->{$_}
288 1 5 if $exclusions->{$_}
289 5 0 if exists $unfiltered->{$_}
293 5 6 $any ? :
693 19 3 ref $fields[0] eq 'ARRAY' ? :
695 21 1 @required ? :
701 6 3 ref $fields[0] eq 'ARRAY' ? :
703 8 1 @accepted ? :
721 7 3 ref $fields[0] eq 'ARRAY' ? :
723 9 1 @excluded ? :
734 260039 1 wantarray ? :
825 295050 7 if (ref $args eq 'HASH') { }
5 2 elsif (ref $args eq 'ARRAY') { }
2 0 elsif (not ref $args) { }
829 1 4 if (ref $args->[0] eq 'HASH') { }
834 1 3 if (@args == 1) { }
2 1 elsif (@args % 2) { }
836 0 1 length $args[0] > 20 ? :
853 0 2 length $args > 20 ? :
860 1 295056 unless (keys %args)
863 1 0 $wantarray ? :
866 25002 270054 if (scalar keys %args < @required_flds)
869 25002 0 $wantarray ? :
889 0 0 $wantarray ? :
0 665060 unless exists $args{$fld}
896 135013 135041 unless (@$ok or $has_wildcard)
898 0 135013 @all_msgs ? :
902 135012 1 $wantarray ? :
908 13 135028 if ($has_wildcard) { }
135028 0 elsif (@$ok) { }
911 10 35 if $exclusions->{$fld}
912 13 22 if exists $filtered->{$fld}
919 0 200043 if $exclusions->{$fld}
920 200035 8 if exists $args{$fld}
926 7 135034 if ($db)
928 9 7 if exists $filtered->{$fld}
929 3 4 if $exclusions->{$fld}
933 3 4 if (@unrecognized > 0)
939 3 4 if (@found_excluded > 0)
949 9 135032 @all_msgs ? :
953 135041 0 $wantarray ? :