Branch Coverage

blib/lib/Config/Onion.pm
Criterion Covered Total %
branch 36 48 75.0


line true false branch
21 5 4 unless ref $self
25 8 1 if @_
34 0 2 unless ref $self
38 2 0 if @_
47 4 4 unless ref $self
51 0 8 if (ref $_[$#_] eq 'HASH')
53 0 0 unless exists $_[$#_]{'use_ext'}
58 0 0 if exists $ca_opts->{'flatten_to_hash'}
71 3 0 unless ref $self
75 1 2 if (ref $_[$#_] eq 'HASH')
77 1 0 unless exists $_[$#_]{'use_ext'}
82 0 1 if exists $ca_opts->{'flatten_to_hash'}
88 2 1 if ($ca_opts->{'use_ext'})
97 2 6 if $ca_opts->{'use_ext'} and not /$ext_re/
98 1 5 if (/\.local\./) { }
115 10 1 if @$main
116 4 7 if @$local
118 1 10 if ($self->prefix_key)
120 1 0 if exists $$cfg{$self->prefix_key}
138 2 67 unless defined $curr->{$_}
139 1 66 if ($curr->{$_} eq '!DELETE!') { }
13 53 elsif (ref $curr->{$_} eq 'HASH') { }
159 0 3 if keys %$root > 1
162 1 2 unless ($child)