Condition Coverage

lib/JSON/Structure/JsonSourceLocator.pm
Criterion Covered Total %
condition 12 44 27.2


and 3 conditions

line !l l&&!r l&&r condition
79 0 0 5 defined $path and length $self->{'json_text'}
232 0 41 31 $pos < $len and substr($text, $pos, 1) =~ /[\s\t\n\r]/u
450 0 0 0 $pos < $len and substr($text, $pos, 1) =~ /[-+0-9.eE]/u
471 0 0 0 $pos < $len and $depth > 0
512 0 0 0 $pos < $len and $depth > 0

or 2 conditions

line l !l condition
57 4 0 $json_text // ""

or 3 conditions

line l !l&&r !l&&!r condition
110 0 1 4 not defined $path or $path eq ""
1 0 4 not defined $path or $path eq "" or $path eq "/"
143 0 0 5 $offset < 0 or $offset > length $self->{'json_text'}
246 0 0 4 $pos >= $len or substr($text, $pos, 1) ne "{"
276 0 0 8 $pos >= $len or substr($text, $pos, 1) ne ":"
306 0 0 0 $pos >= $len or substr($text, $pos, 1) ne "["
349 0 0 12 $pos >= $len or substr($text, $pos, 1) ne "\""
466 0 0 0 $pos >= $len or substr($text, $pos, 1) ne "{"
507 0 0 0 $pos >= $len or substr($text, $pos, 1) ne "["