Branch Coverage

blib/lib/File/TypeCategories.pm
Criterion Covered Total %
branch 53 54 98.1


line true false branch
59 1 9 unless ($ENV{'HOME'})
68 0 30 unless $config_dir and -d $config_dir
70 9 21 unless -f $config_file
89 2 1082 if ($setting =~ s/^[+]//msx) { }
93 1 1 ref $conf->{$file_type}{"+$setting"} eq 'ARRAY' ? :
99 1022 60 ref $conf->{$file_type}{$setting} eq 'ARRAY' ? :
112 5 17 if $self->types_match($file, $ignore)
115 1 16 if -d $file
121 3 13 if (@{$self->include_type;})
124 3 6 if $match == 2
130 14 2 unless ($matched)
133 1 4 if $match and $match != 2
134 3 1 if $match == 2
136 1 12 if $possible > 0
139 2 12 if ($self->include)
143 1 1 if $matches
145 1 1 unless $matches
149 2 11 if ($self->exclude)
151 1 1 if $file =~ /$exclude/
163 2 272 unless (exists $types->{$type})
164 1 1 unless $warned_once{$type}++
169 36 810 if $file =~ /$suffix/
173 7 24 if $file =~ /$suffix/
176 4 2 if ($types->{$type}{'bang'} and -r $file and -f $file and -s $file)
181 3 1 if $line =~ /$bang/
185 1 225 if $types->{$type}{'none'} and not $file =~ m[ [^/] [.] [^/]+ $]msx
189 7 190 if $match