Condition Coverage

blib/lib/Bifcode.pm
Criterion Covered Total %
condition 54 78 69.2


and 3 conditions

line !l l&&!r l&&r condition
180 1 0 2 $2 eq 0 and $3 eq 0
1 1 1 $2 eq 0 and $3 eq 0 and $4 ne 0
188 14 8 4 defined $max_depth and $max_depth < 0
197 17 9 3 defined $max_depth and $max_depth < 0
207 19 8 1 defined $last_key and $key lt $last_key
349 75 0 0 @_ == 2 and pop()
365 0 0 16 defined $ref and defined $type
383 1 1 5 @_ >= 2 and @_ <= 3

or 2 conditions

line l !l condition
60 50 4 pos $_ // 0
256 17 9 $3 // 0
20 6 $5 // 0
321 5 2 $3 // 0
3 4 $5 // 0
386 0 5 shift() || {'STYLE', 'Unified'}

or 3 conditions

line l !l&&r !l&&!r condition
21 76 0 0 shift() // Carp::croak("usage: _croak(\$TYPE, [\$msg])")
56 12 64 0 shift() // $messages{$type}
64 0 0 (shift() // $messages{$type}) // Carp::croak("Bifcode::_croak($type) has no message ")
99 0 1 0 $2 // _croak("DecodeBytes")
109 28 0 0 $2 // _croak("DecodeUTF8")
149 3 3 0 $2 // _croak("DecodeBytes")
159 37 3 0 $2 // _croak("DecodeUTF8")
217 0 0 0 $2 // _croak("DecodeBifcode")
248 2 4 26 $ref eq "SCALAR" or $ref eq "Bifcode::BYTES"
253 17 9 10 defined $3 or defined $5
304 4 2 0 $$_ // _croak("EncodeBytesUndef")
311 3 1 0 $$_ // _croak("EncodeIntegerUndef")
317 8 1 0 $$_ // _croak("EncodeRealUndef")
327 2 0 1 $$_ // _croak("EncodeUTF8Undef")