Branch Coverage

blib/lib/Tree/Simple/Visitor/LoadDirectoryTree.pm
Criterion Covered Total %
branch 25 28 89.2


line true false branch
34 9 150 -d $right && -f $left ? :
3 159 -d $left && -f $right ? :
45 9 150 -d $right && -f $left ? :
9 159 -d $left && -f $right ? :
53 3 2 unless defined $sort_function and ref $sort_function eq 'CODE'
60 4 5 unless &blessed($tree) and $tree->isa('Tree::Simple')
63 1 4 unless $tree->isLeaf
66 1 3 unless -e $root_dir and -d $root_dir
78 0 18 unless opendir DIR, $path
81 198 18 if $_ ne 'File::Spec'->curdir
88 12 6 if $self->{'sort_function'}
93 180 0 if defined $filter
97 15 126 if (-d $full_path) { }
126 0 elsif (-f $full_path) { }