Condition Coverage

lib/Log/Unrotate.pm
Criterion Covered Total %
condition 39 52 75.0


and 3 conditions

line !l l&&!r l&&r condition
199 0 93 0 $$self{'pos'} and $$self{'cursor'}
222 37 0 1 $$self{'check_log'} and $logfile
37 0 1 $$self{'check_log'} and $logfile and $$self{'log'} ne $logfile
356 130 4 6 $stat[7] == 0 and $$self{'LogNumber'} == 0
134 0 6 $stat[7] == 0 and $$self{'LogNumber'} == 0 and $$self{'end'} eq 'fixed'
416 72 0 5 $$self{'check_inode'} and $$pos{'Inode'}
72 0 5 $$self{'check_inode'} and $$pos{'Inode'} and $$self{'Inode'}
0 1 4 $$self{'check_inode'} and $$pos{'Inode'} and $$self{'Inode'} and $$pos{'Inode'} ne $$self{'Inode'}
417 0 3 70 $$self{'check_lastline'} and $$pos{'LastLine'}
3 39 31 $$self{'check_lastline'} and $$pos{'LastLine'} and $$pos{'LastLine'} ne $self->_last_line
447 5 26 55 defined $$self{'EOF'} and $$self{'LogNumber'} == 0

or 2 conditions

line l !l condition
374 74 63 $numbers[0] || 0
383 66 17 $eof || 0

or 3 conditions

line l !l&&r !l&&!r condition
195 3 90 1 $$self{'check_inode'} or $$self{'check_lastline'}
202 93 0 0 $$self{'pos'} or $$self{'cursor'}
213 88 0 2 defined $$self{'log'} or -e $posfile
324 43 77 2 $$self{'LastLine'} || $self->_get_last_line
497 1 38 0 $pos ||= $self->position