Branch Coverage

blib/lib/IO/K8s/Role/SpecBuilder.pm
Criterion Covered Total %
branch 26 66 39.3


line true false branch
14 0 0 if (ref $current eq 'ARRAY' and $part =~ /^\d+$/) { }
0 0 elsif (ref $current eq 'HASH') { }
15 0 0 if ($vivify and not defined $current->[$part])
20 0 0 if ($vivify and not defined $current->{$part})
24 0 0 if $p eq $part
31 0 0 unless $vivify
42 1 25 unless ref $spec eq "HASH"
48 6 37 if (ref $current eq 'ARRAY' and $part =~ /^\d+$/) { }
37 0 elsif (ref $current eq 'HASH') { }
55 4 39 unless defined $current
64 1 4 unless (ref $spec eq "HASH")
74 0 2 if (ref $current eq 'ARRAY' and $part =~ /^\d+$/) { }
2 0 elsif (ref $current eq 'HASH') { }
75 0 0 unless ref $current->[$part]
78 2 0 unless ref $current->{$part}
83 0 5 if (ref $current eq 'ARRAY' and $last_key =~ /^\d+$/) { }
5 0 elsif (ref $current eq 'HASH') { }
95 0 3 unless (ref $spec eq "HASH")
105 0 0 if (ref $current eq 'ARRAY' and $part =~ /^\d+$/) { }
0 0 elsif (ref $current eq 'HASH') { }
106 0 0 unless ref $current->[$part]
109 0 0 unless ref $current->{$part}
114 0 3 if (ref $current eq 'ARRAY' and $last_key =~ /^\d+$/) { }
3 0 elsif (ref $current eq 'HASH') { }
115 0 0 unless ref $current->[$last_key] eq "ARRAY"
118 1 2 unless ref $current->{$last_key} eq "ARRAY"
128 0 1 unless (ref $spec eq "HASH")
139 0 4 unless ref $spec eq "HASH"
146 0 2 if (ref $current eq 'ARRAY' and $part =~ /^\d+$/) { }
2 0 elsif (ref $current eq 'HASH') { }
153 1 1 unless defined $current
156 3 0 if (ref $current eq 'HASH') { }
0 0 elsif (ref $current eq 'ARRAY' and $last_key =~ /^\d+$/) { }