Branch Coverage

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


line true false branch
34 12 148 -d $right && -f $left ? :
5 160 -d $left && -f $right ? :
45 5 148 -d $right && -f $left ? :
10 153 -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 189 18 if $_ ne 'File::Spec'->curdir
88 12 6 if $self->{'sort_function'}
93 171 0 if defined $filter
97 15 126 if (-d $full_path) { }
126 0 elsif (-f $full_path) { }