Branch Coverage

lib/App/Followme/FIO.pm
Criterion Covered Total %
branch 65 84 77.3


line true false branch
37 0 0 if ($page) { }
59 0 3 $filename eq '.' ? :
62 2 1 if defined $ext
73 3 297 if (ref $data eq 'HASH')
83 5 295 if (ref $data eq 'ARRAY')
101 93 47 unless defined $format
112 16 138 if file_name_is_absolute($directories[-1])
121 1058 0 if (no_upwards($dir)) { }
124 0 0 unless $dir eq '.'
138 240 11 if (-e $filename) { }
155 1 0 if (-e $filename) { }
172 86 32 if ($patterns)
176 0 100 if ($pattern eq '*') { }
181 75 25 if ($pattern =~ s/^\*//) { }
188 25 75 if ($pattern =~ s/\*$//) { }
212 14 3 -e $target ? :
215 0 21 unless defined $source
217 1 20 unless -e $source
218 0 20 if fio_same_file($target, $source)
221 15 5 if $source_date >= $target_date
234 70 69 if $file =~ /$pattern/
254 69 70 unless fio_match_patterns($file, $globs)
258 42 28 if ($file_date > $newest_date)
272 0 346 unless defined $filename
276 14 332 unless $fd
278 15 317 if defined $binmode
290 20 24 unless defined $case_sensitivity
291 0 44 unless defined $filename1 and defined $filename2
295 9 35 unless @path1 == @path2
301 264 0 unless ($case_sensitivity)
306 12 252 unless $part1 eq $part2
318 12 15 if ($date =~ /[^\d]/)
319 0 12 unless $date =~ /T/
338 60 1115 if (-d $filename) { }
357 3 3 if -d $file
371 0 235 unless $dd
375 470 1092 unless no_upwards($file)
378 114 978 if (-d $path) { }
401 0 180 unless (-e $dir)
402 0 0 unless mkdir $dir
407 0 180 unless $fd
409 3 177 if defined $binmode