Condition Coverage

blib/lib/Net/OSCAR/XML/Template.pm
Criterion Covered Total %
condition 0 131 0.0


and 3 conditions

line !l l&&!r l&&r condition
23 0 0 0 ref $class and $$class{'oscar'}
62 0 0 0 $$datum{'prefix'} and $$datum{'prefix'} eq 'count'
74 0 0 0 $$datum{'prefix'} and $$datum{'prefix'} eq 'length'
102 0 0 0 $input ne '' and $count == -1 || $i < $count
105 0 0 0 exists $$datum{'enum_byval'} and exists $$datum{'enum_byval'}{$results[-1]}
116 0 0 0 not $input and $count == 1
0 0 0 not $input and $count == 1 and defined $size
120 0 0 0 $input and $count == -1 || $i < $count
148 0 0 0 $$datum{'items'} and @{$$datum{'items'};}
181 0 0 0 $input and $count == -1 || $i < $count
267 0 0 0 @{$$val{'items'};} == 1 and $$val{'items'}[0]{'name'}
319 0 0 0 $$datum{'prefix'} and $$datum{'prefix'} eq 'count'
0 0 0 ref $$datum{'items'} and @{$$datum{'items'};}
364 0 0 0 $$datum{'prefix'} and $$datum{'prefix'} eq 'count'
375 0 0 0 $max_count == -1 || $count < $max_count and @valarray
377 0 0 0 exists $$datum{'enum_byname'} and exists $$datum{'enum_byname'}{$val}
384 0 0 0 $max_count == -1 || $count < $max_count and @valarray
387 0 0 0 $$datum{'items'} and @{$$datum{'items'};}
398 0 0 0 exists $$datum{'len'} && exists $$datum{'pad'}
410 0 0 0 exists $$tlv{'value'} and not @{$$tlv{'items'};}
429 0 0 0 @{$$tlv{'items'};} == 1 and $$tlv{'items'}[0]{'name'}
0 0 0 @{$$tlv{'items'};} == 1 and $$tlv{'items'}[0]{'name'} and exists $data{$$tlv{'items'}[0]{'name'}}
0 0 0 not @{$$tlv{'items'};} and exists $$tlv{'value'}
463 0 0 0 $$datum{'prefix'} and defined $output

or 2 conditions

line l !l condition
21 0 0 ref $class || $class || 'Net::OSCAR::XML::Template'
63 0 0 CORE::unpack($$datum{'prefix_packlet'}, substr($packet, 0, $$datum{'prefix_len'}, '')) || 0
173 0 0 $$_{'subtype'} or -1
211 0 0 $$tlvmap{$type}{$subtype}{'data'} ||= []
212 0 0 $$tlvmap{$type}{$subtype}{'outdata'} ||= []
226 0 0 $$tlvmap{$type}{'data'} ||= []
227 0 0 $$tlvmap{$type}{'outdata'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
56 0 0 0 $$datum{'count'} || ($$datum{'type'} eq 'tlvchain' ? -1 : 1)
101 0 0 0 $$datum{'type'} eq 'data' or $$datum{'type'} eq 'ref'
102 0 0 0 $count == -1 || $i < $count
111 0 0 0 $$datum{'type'} ne 'data' || $$datum{'items'} && @{$$datum{'items'};} || defined $size || $count == 1 || $$datum{'null_terminated'}
120 0 0 0 $count == -1 || $i < $count
172 0 0 0 $$tlvmap{$$_{'num'}} ||= tlv()
181 0 0 0 $count == -1 || $i < $count
319 0 0 0 $$datum{'count'} or $$datum{'prefix'} and $$datum{'prefix'} eq 'count'
0 0 0 $$datum{'type'} eq 'ref' or ref $$datum{'items'} and @{$$datum{'items'};}
368 0 0 0 $max_count == -1 || @valarray <= $max_count
372 0 0 0 $$datum{'type'} eq 'data' or $$datum{'type'} eq 'ref'
375 0 0 0 $max_count == -1 || $count < $max_count
384 0 0 0 $max_count == -1 || $count < $max_count
390 0 0 0 $max_count == 1 || ref $val && ref $val eq 'HASH'
412 0 0 0 ref $data{$$tlv{'name'}} eq 'HASH' || ref $data{$$tlv{'name'}} eq 'ARRAY'