Condition Coverage

blib/lib/File/Write/Rotate.pm
Criterion Covered Total %
condition 33 43 76.7


and 3 conditions

line !l l&&!r l&&r condition
65 0 0 0 $args{'rotate_probability'} > 0 and $args{'rotate_probability'} < 1
240 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
291 493 0 0 $self->{'rotate_probability'} and $self->{'_fh'}
338 0 408 1 defined $inode and $finode != $inode
426 5 12 8 $self->{'period'} and $period eq $latest_period

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
49 39 0 239 $args{'period'} or $args{'size'}
347 78 1 414 $do_rotate or $do_open
425 20 0 10 $self->{'period'} or $rs