Branch Coverage

blib/lib/Metadata/Base.pm
Criterion Covered Total %
branch 59 110 53.6


line true false branch
32 0 0 if (ref $self)
34 0 0 @_ ? :
39 0 0 unless defined $self
52 1 9 unless defined $self
57 2 8 unless defined $$self{'DEBUG'}
62 9 1 if $$self{'ORDERED'}
67 0 10 if $$self{'DEBUG'}
79 0 0 $$self{'ORDERED'} ? :
109 1 24 unless defined $element
111 21 3 unless (defined $$self{'ELEMENTS'}{$element})
113 20 1 if $$self{'ORDERED'}
115 0 21 if $$self{'DEBUG'}
118 0 24 if (ref $value) { }
120 0 0 if $$self{'DEBUG'}
122 4 20 if (defined $index) { }
126 4 16 if ($operation eq 'add') { }
135 0 24 if $$self{'DEBUG'}
143 0 0 defined $index ? :
0 31 if $$self{'DEBUG'}
145 0 31 unless defined $element
147 0 0 defined $index ? :
0 31 if $$self{'DEBUG'}
150 1 30 unless defined $value
152 3 27 if (defined $index) { }
155 7 20 wantarray ? :
163 0 0 defined $index ? :
0 2 if $$self{'DEBUG'}
165 0 2 unless defined $element
167 0 0 defined $index ? :
0 2 if $$self{'DEBUG'}
170 0 2 unless defined $value
173 0 2 if (defined $index)
177 0 0 unless grep defined($_), @{$$self{'ELEMENTS'}{$element};}
180 2 0 unless (defined $index)
184 2 0 if ($$self{'ORDERED'})
196 0 2 unless exists $$self{'ELEMENTS'}{$element}
197 1 1 unless defined $index
207 1 4 unless defined $element
209 0 4 unless exists $$self{'ELEMENTS'}{$element}
218 2 0 if $$self{'ORDERED'}
233 0 8 unless $$self{'ORDERED'}
235 7 1 unless @_
237 0 1 if defined wantarray
240 0 1 if defined wantarray
266 0 0 $$self{'ORDERED'} ? :
267 0 0 if $$self{'ORDERED'}
284 1 0 $$self{'ORDERED'} ? :
288 0 0 unless defined $value
301 0 1 unless defined $value
345 4 0 if $$self{'ORDERED'}
398 0 7 unless defined $year
406 4 3 if $tz eq 'Z'
412 3 4 if ($tz =~ /^(.)(\d+):(\d+)$/)
414 3 0 $1 eq '+' ? :
416 1 6 if ($ss =~ /(\.\d+)$/)