blib/lib/JSON/Tiny/Subclassable.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 5 | 20 | 25.0 |
line | l | !l | condition |
---|---|---|---|
104 | 0 | 0 | $self->error('Missing or empty input') and return undef |
110 | 0 | 0 | $self->error('Wide character in input') and return undef |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
115 | 20 | 0 | 0 | $bytes =~ /$UTF_PATTERNS->{$_}/ and $encoding = $_ |
147 | 5 | 0 | 0 | not $res and my $e = $@ |
394 | 0 | 0 | 0 | &Scalar::Util::blessed($value) and my $sub = $value->can('TO_JSON') |
line | l | !l | condition |
---|---|---|---|
45 | 1 | 10 | ref $opts->{'j'} eq 'HASH' && $opts->{'j'}{'-as'} || 'j' |
421 | 0 | 0 | pop @lines or '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
49 | 0 | 0 | 3 | ref $d eq 'ARRAY' or ref $d eq 'HASH' |