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 3 0 $bad_char eq q['] and $valid_bytes->[34]
80 0 0 0 $bad_char eq '}' and $previous =~ /:\s*$/u
127 1 0 1 $type eq 'initial state' and not $previous =~ /^\s+$/u
135 6 1 0 $type eq 'object' || $type eq 'array' and $valid_bytes->[44]
150 7 0 0 $type eq 'object' and $valid_bytes->[34]
183 2 0 1 $bad_char eq '.' and $remaining =~ /^[0-9]+/u
189 1 0 1 $previous =~ /0$/u and $remaining =~ /^[0-9]+/u
199 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 ']'
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'
135 0 1 6 $type eq 'object' || $type eq 'array'