Branch Coverage

blib/lib/Tree/Simple/Manager.pm
Criterion Covered Total %
branch 57 62 91.9


line true false branch
25 1 19 unless @tree_configs and scalar @tree_configs >= 2
40 2 19 unless exists $$config{'tree_root'}
43 1 18 if exists $$self{'trees'}{$tree_name}
49 1 17 unless blessed $root_tree and $root_tree->isa('Tree::Simple')
58 2 11 if (exists $$config{'tree_index'}) { }
59 1 1 unless $$config{'tree_index'}->isa('Tree::Simple::Manager::Index')
69 1 11 if (exists $$config{'tree_meta_data'})
70 0 1 unless ref $$config{'tree_meta_data'} eq 'HASH'
74 0 2 unless $tree->isa('Tree::Simple::WithMetaData')
81 2 10 if (exists $$config{'tree_view'}) { }
82 1 1 unless $$config{'tree_view'}->isa('Tree::Simple::View')
97 1 16 unless exists $$config{'tree_file_path'}
100 4 12 if (exists $$config{'tree_cache_path'})
104 2 2 if ($file_stat and $cache_stat and $cache_stat->mtime >= $file_stat->mtime)
109 0 2 if ($@) { }
125 0 14 if exists $$config{'tree_file_encoding'}
130 3 10 if (exists $$config{'tree_parse_filter'}) { }
131 1 2 unless ref $$config{'tree_parse_filter'} eq 'CODE'
151 3 11 if ($@)
155 2 9 if (exists $$config{'tree_cache_path'})
159 0 2 if ($@)
172 1 12 unless blessed $tree and $tree->isa('Tree::Simple')
185 109 10 if $tabs
194 1 1 wantarray ? :
199 1 8 unless defined $tree_name
201 1 7 unless exists $$self{'trees'}{$tree_name}
208 1 11 unless defined $tree_name
210 1 10 unless exists $$self{'trees'}{$tree_name}
222 1 4 unless defined $tree_name
224 1 3 unless exists $$self{'trees'}{$tree_name}
237 2 2 if exists $$self{'trees_loaded_from_cache'}{$tree_name}