Condition Coverage

blib/lib/File/Replace.pm
Criterion Covered Total %
condition 57 66 89.3


and 3 conditions

line !l l&&!r l&&r condition
40 5 0 0 @mine and my(@i) = grep({/^-i/;} @mine)
71 52 3 1 $opts{'autocancel'} and $opts{'autofinish'}
83 47 3 1 $self->{'debug'} and not ref $self->{'debug'}
105 0 2 23 $!{'ENOENT'} and $self->{'create'} eq 'now' || $self->{'create'} eq 'later'
135 41 1 4 defined $self->{'backup'} and length $self->{'backup'}
212 1 1 18 $opts{'count'} and $opts{'count'} =~ /\A\d+\z/
213 1 1 16 $opts{'bufsize'} and $opts{'bufsize'} =~ /\A\d+\z/
215 11 4 1 defined $opts{'less'} and not $opts{'less'} =~ /\A(?:ok|ignore)\z/
217 6 7 15 $remain > 0 and not eof $self->{'ifh'}
225 6 4 3 $remain and not $opts{'less'}
240 0 30 1 defined fileno $ifh and not close $ifh
0 29 1 defined fileno $ofh and not close $ofh
2 27 0 $self->{'chmod'} and not chmod($self->{'setperms'}, $ofn)
265 13 2 49 $from eq "destroy" and not $self->{'is_open'}
272 48 1 15 defined $ifh and defined fileno $ifh
49 1 14 defined $ifh and defined fileno $ifh and close $ifh
273 47 0 17 defined $ofh and defined fileno $ofh
47 1 16 defined $ofh and defined fileno $ofh and close $ofh

or 3 conditions

line l !l&&r !l&&!r condition
22 5 0 0 $] ge "5.010" or defined &Hash::Util::lock_ref_keys
74 2 1 6 $opts{'create'} eq "off" or $opts{'create'} eq "no"
2 1 3 $opts{'create'} eq "now" or $opts{'create'} eq "later"
105 2 21 2 $self->{'create'} eq 'now' || $self->{'create'} eq 'later'