Condition Coverage

blib/lib/JSON/Lines.pm
Criterion Covered Total %
condition 26 39 66.6


and 3 conditions

line !l l&&!r l&&r condition
28 82 38 0 exists $args{$_} and $JSON->$_($args{$_})
97 0 158 2 defined $self->{'_buffer'} and length $self->{'_buffer'}
182 12 0 2 $line eq "" and eof $fh
209 15 1 19 $self->{'_line_pos'}{$fh_id} < $target_line and not eof $fh
216 0 0 0 $line_objects and @$line_objects > $target_offset

or 2 conditions

line l !l condition
136 4 0 $self->{'_buffer'} // ""
176 14 3 $self->{'_line_buffer'} //= []
195 14 2 $self->{'_line_pos'} //= {}
196 14 2 $self->{'_parsed_lines'} //= {}
202 16 0 $self->{'_line_pos'}{$fh_id} //= 0
203 16 0 $self->{'_parsed_lines'}{$fh_id} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
181 12 2 90 $line =~ /^$LINES/ or eof $fh
221 15 0 29 $line =~ /^$LINES/ or eof $fh
244 29 0 0 $line =~ /^$LINES/ or eof $fh
272 40 0 152 $line =~ /^$LINES/ or eof $fh