Branch Coverage

blib/lib/Params/Filter.pm
Criterion Covered Total %
branch 90 90 100.0


line true false branch
238 24 22 unless $args and ref($args) =~ /hash/iu
252 5 12 unless (@$ok)
258 2 6 unless exists $unfiltered->{$_}
270 2 4 unless exists $unfiltered->{$_}
274 4 10 if $exclusions->{$_}
284 2 7 unless exists $unfiltered->{$_}
288 1 6 if $exclusions->{$_}
289 5 1 if exists $unfiltered->{$_}
293 5 7 $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 45 1 wantarray ? :
825 62 13 if (ref $args eq 'HASH') { }
7 6 elsif (ref $args eq 'ARRAY') { }
3 3 elsif (not ref $args) { }
829 1 6 if (ref $args->[0] eq 'HASH') { }
834 2 4 if (@args == 1) { }
3 1 elsif (@args % 2) { }
836 1 1 length $args[0] > 20 ? :
853 1 2 length $args > 20 ? :
860 5 70 unless (keys %args)
863 4 1 $wantarray ? :
866 3 67 if (scalar keys %args < @required_flds)
869 2 1 $wantarray ? :
889 1 1 $wantarray ? :
2 65 unless exists $args{$fld}
896 20 45 unless (@$ok)
898 1 19 @all_msgs ? :
902 19 1 $wantarray ? :
908 13 32 if ($has_wildcard) { }
911 10 35 if $exclusions->{$fld}
912 13 22 if exists $filtered->{$fld}
919 1 46 if $exclusions->{$fld}
920 38 8 if exists $args{$fld}
926 7 38 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 11 34 @all_msgs ? :
953 44 1 $wantarray ? :