Branch Coverage

lib/App/Followme/FolderData.pm
Criterion Covered Total %
branch 66 76 86.8


line true false branch
77 12 23 if ($root eq "index")
82 35 0 unless $root =~ /^\d+$/
94 0 597 unless defined $filename
125 13 207 if (-d $directory) { }
147 12 27 unless exists $data{$name}
163 0 103 $filename eq '.' ? :
166 83 20 if defined $ext
176 0 10 unless $loop
180 10 20 if ($loop->[$i] eq $filename)
187 2 8 if ($index < 0 or $index > @$loop - 1) { }
206 0 14 unless $self->match_directory($subdirectory)
227 174 186 if $self->match_file($filename)
242 11 4 if defined $newest_file
246 0 22 unless defined $file and -e $file
249 15 7 if ($date > $newest_date)
276 1 46 if ($sorted_order) { }
299 134 0 if $sorted_order
309 1 1 if ($sorted_order) { }
313 1 0 if ($self->{'size_format'})
318 1 1 if ($fmt eq $format)
326 1 0 unless $fmt
376 1 1 @path ? :
381 1 1 unless @path
424 4 21 unless $self->match_directory($subfolder)
454 1 1 $is_index ? :
483 10 3 defined $newest_file ? :
503 2 8 if $root eq $rootname
516 29 0 if ($self->{'remote_url'}) { }
534 18 17 if ($self->{'site_url'}) { }
607 4 1 $filename ? :
617 4 1 $filename ? :
628 4 35 if $self->match_patterns($directory, $self->{'exclude_dir_patterns'})
640 122 285 if ($self->{'exclude_index'})
642 37 85 if $file eq $index_file
651 9 361 if $self->match_patterns($file, $self->{'exclude_file_patterns'})
652 140 221 unless $self->match_patterns($file, $self->{'include_file_patterns'})
666 234 245 if $file =~ /$pattern/
683 161 23 unless $self->{$url}