Condition Coverage

blib/lib/Log/Dispatch/FileRotate.pm
Criterion Covered Total %
condition 27 66 40.9


and 3 conditions

line !l l&&!r l&&r condition
56 0 0 9 $size =~ /^\d+$/ and $size < $two_gig
0 0 9 $size =~ /^\d+$/ and $size < $two_gig and $size > 0
66 2 0 7 defined $self->{'max'} and $self->{'max'} =~ /^\d+$/
2 0 7 defined $self->{'max'} and $self->{'max'} =~ /^\d+$/ and $self->{'max'} > 0
283 0 227 1 $in_time_mode and $time_to_rotate
227 0 0 not $in_time_mode and $rotate_by_size
227 0 0 $rotate_by_size and $check_both
439 0 0 228 defined $abs and $abs
459 0 0 7 defined $abs and $abs
468 0 0 1 defined $abs and $abs
592 0 7 168 @epochs and $epochs[0] <= $now
603 0 0 0 @epochs and $epochs[0] <= $now
640 8 0 0 do {

or 2 conditions

line l !l condition
73 9 0 $dir ||= '.'
508 7 0 $initial ||= 0
542 0 0 $yrs ||= 1

or 3 conditions

line l !l&&r !l&&!r condition
27 0 9 0 ref $proto || $proto
74 9 0 0 $f ||= $name
272 0 0 228 not defined $finode or $inode != $finode
283 1 0 227 $in_time_mode and $time_to_rotate or not $in_time_mode and $rotate_by_size
0 0 227 $in_time_mode and $time_to_rotate or not $in_time_mode and $rotate_by_size or $rotate_by_size and $check_both
0 0 227 $in_time_mode and $time_to_rotate or not $in_time_mode and $rotate_by_size or $rotate_by_size and $check_both or $user_rotation
388 222 6 0 $MUTEXES{$path} ||= 'Log::Dispatch::FileRotate::Mutex'->new($path, %args)