Condition Coverage

blib/lib/JSON/Repair.pm
Criterion Covered Total %
condition 22 36 61.1


and 3 conditions

line !l l&&!r l&&r condition
57 10 0 3 $bad_char eq q['] and $valid_bytes->[34]
79 0 0 0 $bad_char eq '}' and $previous =~ /:\s*$/u
126 1 0 1 $type eq 'initial state' and not $previous =~ /^\s+$/u
134 6 1 0 $type eq 'object' || $type eq 'array' and $valid_bytes->[44]
149 7 0 0 $type eq 'object' and $valid_bytes->[34]
182 2 0 1 $bad_char eq '.' and $remaining =~ /^[0-9]+/u
188 1 0 1 $previous =~ /0$/u and $remaining =~ /^[0-9]+/u
198 0 0 1 $bad_char =~ /[eE]/u and $previous =~ /\.$/u

or 3 conditions

line l !l&&r !l&&!r condition
57 1 1 8 $bad_char eq '}' or $bad_char eq ']'
98 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'
134 0 1 6 $type eq 'object' || $type eq 'array'