| blib/lib/Bifcode/V1.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 51 | 65 | 78.4 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 128 | 1 | 0 | 2 | $2 eq 0 and $3 eq 0 |
| 1 | 1 | 1 | $2 eq 0 and $3 eq 0 and $4 ne 0 | |
| 136 | 14 | 8 | 4 | defined $max_depth and $max_depth < 0 |
| 145 | 15 | 9 | 3 | defined $max_depth and $max_depth < 0 |
| 157 | 19 | 8 | 1 | defined $last_key and $key lt $last_key |
| 277 | 0 | 0 | 16 | defined $ref and defined $type |
| 294 | 1 | 1 | 5 | @_ >= 2 and @_ <= 3 |
| line | l | !l | condition |
|---|---|---|---|
| 55 | 63 | 0 | (shift() // $messages{$type}) // "(no message)" |
| 58 | 52 | 1 | pos $_ // 0 |
| 197 | 32 | 18 | $3 // 0 |
| 39 | 11 | $5 // 0 | |
| 252 | 10 | 4 | $3 // 0 |
| 6 | 8 | $5 // 0 | |
| 297 | 0 | 5 | shift() || {'STYLE', 'Unified'} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 21 | 71 | 0 | 0 | shift() // croak("usage: _error(\$TYPE, [\$msg])") |
| 55 | 8 | 63 | 0 | shift() // $messages{$type} |
| 99 | 3 | 4 | 0 | $2 // _croak("DecodeBytes") |
| 109 | 65 | 3 | 0 | $2 // _croak("DecodeUTF8") |
| 189 | 2 | 8 | 35 | $ref eq "SCALAR" or $ref eq "Bifcode::BYTES" |
| 194 | 32 | 18 | 20 | defined $3 or defined $5 |
| 235 | 8 | 2 | 0 | $$_ // _croak("EncodeBytesUndef") |
| 242 | 4 | 1 | 0 | $$_ // _croak("EncodeIntegerUndef") |
| 248 | 15 | 1 | 0 | $$_ // _croak("EncodeFloatUndef") |
| 258 | 4 | 0 | 1 | $$_ // _croak("EncodeUTF8Undef") |