Condition Coverage

blib/lib/Bifcode/V2.pm
Criterion Covered Total %
condition 54 77 70.1


and 3 conditions

line !l l&&!r l&&r condition
160 1 0 2 $2 eq '0' and $3 eq '0'
1 1 1 $2 eq '0' and $3 eq '0' and $4 ne '0'
168 14 8 4 defined $max_depth and $max_depth < 0
177 17 9 3 defined $max_depth and $max_depth < 0
187 19 8 1 defined $last_key and $key lt $last_key
331 0 0 16 defined $ref and defined $type
349 1 1 62 @_ >= 2 and @_ <= 3

or 2 conditions

line l !l condition
55 65 0 (shift() // $messages{$type}) // die('_error (no message)')
58 54 1 pos $_ // 0
241 16 9 $3 // 0
20 5 $5 // 0
302 5 2 $3 // 0
3 4 $5 // 0
352 0 62 shift() || {'STYLE', 'Unified'}

or 3 conditions

line l !l&&r !l&&!r condition
21 73 0 0 shift() // Carp::croak('usage: _croak($TYPE, [$msg])')
55 8 65 0 shift() // $messages{$type}
93 1 0 0 $2 // _croak('DecodeBytes')
103 28 0 0 $2 // _croak('DecodeUTF8')
131 4 2 0 $2 // _croak('DecodeBytes')
141 35 4 1 $2 // _croak('DecodeUTF8')
197 0 0 0 $2 // _croak('DecodeBifcode')
229 2 4 21 $ref eq 'SCALAR' or $ref eq 'Bifcode::V2::BYTES'
238 16 9 10 defined $3 or defined $5
285 4 2 0 $$_ // _croak('EncodeBytesUndef')
292 3 1 0 $$_ // _croak('EncodeIntegerUndef')
298 8 1 0 $$_ // _croak('EncodeRealUndef')
308 2 0 1 $$_ // _croak('EncodeUTF8Undef')
313 0 0 0 $$_ // _croak('EncodeBifcodeUndef')