Condition Coverage

blib/lib/File/Write/Rotate.pm
Criterion Covered Total %
condition 35 43 81.4


and 3 conditions

line !l l&&!r l&&r condition
67 0 0 0 $args{'rotate_probability'} > 0 and $args{'rotate_probability'} < 1
242 35 0 65 not $delete_only and defined $rotating_period
35 17 48 not $delete_only and defined $rotating_period and $period eq $rotating_period
298 493 0 0 $self->{'rotate_probability'} and $self->{'_fh'}
345 0 408 1 defined $inode and $finode != $inode
433 5 12 8 $self->{'period'} and $period eq $latest_period

or 2 conditions

line l !l condition
33 12 266 delete $args0{'suffix'} // ''
35 234 44 delete $args0{'size'} // 0
55 26 252 delete $args0{'histories'} // 10
61 3 275 delete $args0{'lock_mode'} // 'write'
182 52 100 $+{'rotate_suffix'} // 0
112 40 $+{'period'} // ''
1 151 $cs // ''
383 5 0 $self->{'buffer_size'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
51 39 218 21 $args{'period'} or $args{'size'}
354 78 1 414 $do_rotate or $do_open
432 20 5 5 $self->{'period'} or $rs