Branch Coverage

blib/lib/Config/Model/ObjTreeScanner.pm
Criterion Covered Total %
branch 37 58 63.7


line true false branch
29 0 247 unless $self->{'leaf_cb'} = delete $args{'leaf_cb'}
44 1398 3048 if defined $args{$param}
47 0 4446 unless defined $self->{$param}
50 0 247 if (delete $args{'experience'})
58 0 247 unless ref $self->{'node_dispatch_cb'} eq "HASH"
61 0 247 unless $self->{'check'} =~ /yes|no|skip/
63 0 247 if scalar %args
79 0 247 if not defined $fallback or $fallback eq "none"
83 247 0 if ($fallback eq "node" or $fallback eq "all")
107 247 0 if ($fallback eq "leaf" or $fallback eq "all")
120 0 247 if not $done
131 0 1281 unless &blessed($node) and $node->isa("Config::Model::AnyThing")
136 254 1027 if ($node->isa("Config::Model::WarpedNode"))
138 0 254 unless defined $node
165 373 6835 if ($element_type eq 'hash') { }
498 6337 elsif ($element_type eq 'list') { }
91 6246 elsif ($element_type eq 'check_list') { }
362 5884 elsif ($element_type eq 'node') { }
257 5627 elsif ($element_type eq 'warped_node') { }
5627 0 elsif ($element_type eq 'leaf') { }
194 362 0 $autov || $node->is_element_defined($element_name) ? :
205 257 0 $autov || $node->is_element_defined($element_name) ? :
206 257 0 if $next_obj
211 0 5627 unless $type
214 0 5627 unless defined $cb
234 445 392 if ($cargo_type =~ /node$/) { }
392 0 elsif ($cargo_type eq 'leaf') { }
242 0 392 unless defined $cb
261 874 0 if $element_type eq "hash" or $element_type eq "list"