Condition Coverage

blib/lib/Test2/Harness/Util/File/Stream.pm
Criterion Covered Total %
condition 10 20 50.0


or 2 conditions

line l !l condition
17 0 10 delete $params{'max'} || 0
20 6 1 $self->{'line_pos'} ||= 0
55 0 0 flock $fh, 2 or die "Could not lock file '${name}': $!"
61 0 0 flock $fh, 8 or die "Could not unlock file '${name}': $!"

or 3 conditions

line l !l&&r !l&&!r condition
23 36 0 0 not $max or @out < $max
25 26 0 10 defined $line or defined $spos
26 0 10 defined $line or defined $spos or defined $epos
27 0 12 14 $params{'peek'} or defined $params{'from'}