Branch Coverage

blib/lib/Directory/Diff.pm
Criterion Covered Total %
branch 20 50 40.0


line true false branch
19 0 6 unless ($dir and -d $dir)
23 0 6 unless (wantarray)
31 12 8 if ($file eq '.' or $file eq '..')
34 6 2 if (-f $file) { }
2 0 elsif (-d $file) { }
50 0 6 if ($verbose)
62 0 2 if (ref $ls_dir1_ref ne 'HASH' or ref $ls_dir2_ref ne 'HASH')
71 5 2 unless ($ls_dir2_ref->{$d1e})
73 0 5 if ($verbose)
78 0 2 unless (wantarray)
87 0 2 if (ref $ls_dir1_ref ne 'HASH' or ref $ls_dir2_ref ne 'HASH')
94 4 0 if ($ls_dir2_ref->{$file})
95 1 3 unless (-f $d1file)
100 2 1 if (compare($d1file, $d2file) != 0)
105 0 2 unless (wantarray)
114 0 0 unless ($dir1 and $dir2)
117 0 0 unless (-d $dir1)
120 0 0 unless (-d $dir2)
123 0 0 if ($verbose)
126 0 0 unless ($callback_ref)
129 0 0 if (ref $callback_ref ne 'HASH')
138 0 0 if ($d1cb)
147 0 0 if ($d2cb)
157 0 0 if ($diff_cb)
164 0 0 if (defined wantarray)