Condition Coverage

blib/lib/File/SmartTail.pm
Criterion Covered Total %
condition 15 93 16.1


and 3 conditions

line !l l&&!r l&&r condition
205 0 0 0 $File::SmartTail::DIRTY and not $File::SmartTail::COUNT++ % 10
308 0 0 0 $self->{'file_data'}{$file}{'inode'} and $inode != $self->{'file_data'}{$file}{'inode'}
353 0 0 0 $size >= $self->{'file_data'}{$file}{'seek'} and sysseek $self->{'file_data'}{$file}{'FILE'}, $self->{'file_data'}{$file}{'seek'}, 0
407 0 0 0 $self->{'file_data'}{$key}{'inode'} and $inode != $self->{'file_data'}{$key}{'inode'}
462 0 0 0 $size >= $self->{'file_data'}{$key}{'seek'} and sysseek $self->{'file_data'}{$key}{'FILE'}, $self->{'file_data'}{$key}{'seek'}, 0
676 0 0 0 $opts{-'heartbeat'} and $opts{-'heartbeat'} eq 'recv'
690 0 0 0 $! =~ /^Interrupted|^Resource|^Bad file/ and ++$ssh_try < 7
721 0 0 0 $! =~ /^Interrupted/ and $port_try < 20
0 0 0 $! =~ /^Resource/ and $port_try < 20
770 0 0 0 $! =~ /^Interrupted|^Resource|^Bad file|^Connection/ and $conn_try < 6
856 1 4 0 $File::SmartTail::DIRTY and not $File::SmartTail::COUNT % 10
877 5 0 0 exists $self->{'file_data'}{$key}{'opts'}{-'heartbeat'} and $self->{'file_data'}{$key}{'opts'}{-'heartbeat'} eq 'send'
5 0 0 exists $self->{'file_data'}{$key}{'opts'}{-'heartbeat'} and $self->{'file_data'}{$key}{'opts'}{-'heartbeat'} eq 'recv'
921 0 0 0 $self->{'file_data'}{$key}{'opts'}{-'type'} eq 'UNIX-REMOTE' and $! =~ /^Resource/
1160 0 0 0 $self->{'file_data'}{$key}{'heartbeat'} and $now - $self->{'file_data'}{$key}{'heartbeat'} > $File::SmartTail::BEATOUT
1221 0 0 0 $child && kill('KILL', $child)
1360 0 0 10 $yrfmt and $yrfmt ge 2
0 0 10 $yrfmt and $yrfmt ge 2 and $yrfmt lt 5
1634 0 0 1 require File::SmartTail::Logger && File::SmartTail::Logger::LOG()

or 2 conditions

line l !l condition
631 0 0 $opts{-'rmtsh'} || $self->{'file_data'}{$key}{'opts'}{-'rmtsh'} || 'ssh'
637 0 0 $opts{-'rmtopts'} || ''
1548 0 0 $self->{'DB'}{'STATFILE'} || die("Cannot unlink $self->{'DB'}{'STATFILE'}")

or 3 conditions

line l !l&&r !l&&!r condition
124 0 1 0 ref $type || $type
231 0 0 0 $self->{'file_data'}{$file}{'inode'} != $inode or $self->{'file_data'}{$file}{'seek'} > $size
854 1 4 0 $request_mark ||= time
904 5 0 0 $request_mark || time
941 0 0 1 $self->{'file_data'}{$key}{'inode'} != $inode or $self->{'file_data'}{$key}{'seek'} > $size
1124 0 0 0 $self->{'file_data'}{$key}{'heartbeat'} eq undef or $self->{'file_data'}{$key}{'heartbeat'} < $now - $File::SmartTail::BEAT + $File::SmartTail::SLEEP
1279 0 0 0 $i < 0 or $i > $#arr
1481 0 0 0 $opts{-'date'} eq 'gz' or $opts{-'rmtopts'} =~ /-date\s+gz/
1634 4 1 0 $v ||= require File::SmartTail::Logger && File::SmartTail::Logger::LOG()
1647 0 0 1 shift() || $0