Branch Coverage

blib/lib/Test/Files.pm
Criterion Covered Total %
branch 57 60 95.0


line true false branch
46 1 2 unless (-f $candidate_file and -r _)
59 1 1 if ($failed) { }
74 1 1 unless (open CANDIDATE, "$candidate_file")
89 0 1 if ($failed) { }
105 4 14 unless (open FIRST, "$first")
109 7 11 unless (open SECOND, "$second")
113 9 9 unless $success
127 9 10 if ($filter) { }
131 22 0 if $filtered
157 4 6 if ($files_exist) { }
166 2 2 if ($failed) { }
186 2 8 unless (-d $base_dir)
189 2 6 if (ref $list ne 'ARRAY')
196 5 15 unless -e $elem_path
208 2 2 if (@result == 2)
216 1 1 if (@$missing) { }
232 2 4 if (@result == 2)
242 2 2 if (@$missing) { }
257 4 12 if $name eq $base_dir
259 2 10 unless exists $expected{$name}
264 2 2 if (@unexpected)
271 3 1 if @diags
289 2 8 unless (-d $first_dir)
294 2 6 unless (-d $second_dir)
299 1 5 unless (not defined $filter or ref $filter eq 'CODE')
313 9 8 if -d $name
316 0 8 if length $name < 1
326 5 3 if ($files_exist) { }
341 2 3 if ($failed)
352 3 2 if (@diags) { }