Branch Coverage

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


line true false branch
77 10 22 if ($root eq 'index')
82 32 0 unless $root =~ /^\d+$/
94 0 593 unless defined $filename
125 15 195 if (-d $directory) { }
147 12 27 unless exists $data{$name}
163 0 100 $filename eq '.' ? :
166 80 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 16 unless $self->match_directory($subdirectory)
227 168 187 if $self->match_file($filename)
242 11 5 if defined $newest_file
246 0 22 unless defined $file and -e $file
249 15 7 if ($date > $newest_date)
276 1 43 if ($sorted_order) { }
299 139 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 24 unless $self->match_directory($subfolder)
454 1 1 $is_index ? :
483 10 4 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 40 if $self->match_patterns($directory, $self->{'exclude_dir_patterns'})
640 120 280 if ($self->{'exclude_index'})
642 39 81 if $file eq $index_file
651 9 352 if $self->match_patterns($file, $self->{'exclude_file_patterns'})
652 139 213 unless $self->match_patterns($file, $self->{'include_file_patterns'})
666 226 251 if $file =~ /$pattern/
683 159 23 unless $self->{$url}