blib/lib/JSON/Repair.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 22 | 36 | 61.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
58 | 10 | 0 | 3 | $bad_char eq q['] and $valid_bytes->[34] |
80 | 0 | 0 | 0 | $bad_char eq '}' and $previous =~ /:\s*$/u |
129 | 1 | 0 | 1 | $type eq 'initial state' and not $previous =~ /^\s+$/u |
137 | 6 | 1 | 0 | $type eq 'object' || $type eq 'array' and $valid_bytes->[44] |
152 | 7 | 0 | 0 | $type eq 'object' and $valid_bytes->[34] |
193 | 2 | 0 | 1 | $bad_char eq '.' and $remaining =~ /^[0-9]+/u |
202 | 1 | 0 | 1 | $previous =~ /0$/u and $remaining =~ /^[0-9]+/u |
212 | 0 | 0 | 1 | $bad_char =~ /[eE]/u and $previous =~ /\.$/u |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
58 | 1 | 1 | 8 | $bad_char eq '}' or $bad_char eq ']' |
99 | 0 | 1 | 7 | $type eq 'object' or $type eq 'array' |
1 | 1 | 6 | $type eq 'object' or $type eq 'array' or $type eq 'initial state' | |
137 | 0 | 1 | 6 | $type eq 'object' || $type eq 'array' |