Condition Coverage

blib/lib/File/Rsync/Mirror/Recentfile.pm
Criterion Covered Total %
condition 109 184 59.2


and 3 conditions

line !l l&&!r l&&r condition
581 0 14 27 defined $rfile and -e $rfile
766 0 0 25076 exists $seconds{$t} and $n =~ /^\d+$/
904 0 446 0 @$other_recent and &_bigfloatlt($other_recent->[-1]{'epoch'}, $oldest_allowed)
910 75 646 1378 @$my_recent and &_bigfloatlt($my_recent->[-1]{'epoch'}, $oldest_allowed)
923 19102 2950 27 $self->interval eq 'Z' and $oev->{'type'} eq 'delete'
22052 0 27 $self->interval eq 'Z' and $oev->{'type'} eq 'delete' and not $self->keep_delete_objects_forever
947 11504 16598 17375 @$other_recent_filtered and &_bigfloatge($other_recent_filtered->[0]{'epoch'}, $my_recent->[0]{'epoch'})
954 679 32168 10 defined $last_epoch and $event->{'epoch'} eq $last_epoch
1011 4375 190 9933 $merged and $into = $merged->{'into_interval'}
4565 536 9397 $merged and $into = $merged->{'into_interval'} and defined $self->_interval
1114 0 1 5 $self->_current_tempfile and not $self->_current_tempfile_fh
1159 555 0 260 $rec and $rec->{'recentepoch'}
1365 0 0 28 ref $path and ref $path eq 'ARRAY'
1391 0 0 0 $self->_my_ignore_link_stat_errors and join($", @err) =~ /^ rsync: \s link_stat /x
1423 0 0 0 $self->_my_ignore_link_stat_errors and join($", @err) =~ /^ rsync: \s link_stat /x
1450 6586 0 33 $rfile and -s $rfile
1608 2005 0 0 $options->{'max'} and @$re > $options->{'max'}
1690 18 0 23 $old_dirtymark and $new_dirtymark
18 18 5 $old_dirtymark and $new_dirtymark and $new_dirtymark ne $old_dirtymark
1850 0 0 0 $max_rsync_errors >= 0 and $no_success_count >= $max_rsync_errors
2059 1644 2 0 $self->verbose and @$batch > 1
2071 1646 0 0 $console and not $i % 50
2103 1614 0 32 defined $dirty_epoch and &_bigfloatgt($now, $dirty_epoch)
2110 769 0 877 $merged->{'epoch'} and not $setting_new_dirty_mark
2119 354 0 1292 defined $path and $path =~ s/^\Q$lrd\E//
2183 0 0 0 $memo_splicepos <= $#$recent && $epoch
2245 37 0 19 $self->_uptodateness_ever_reached and not $self->seeded
2265 0 0 21 defined $mtime and defined $minmax->{'mtime'}
0 21 0 defined $mtime and defined $minmax->{'mtime'} and $mtime > $minmax->{'mtime'}
2313 2707 97002 0 defined $Last_epoch and &_bigfloatge($recent->[$i]{'epoch'}, $Last_epoch)
2325 0 0 1668 @$recent && exists $recent->[0]{'epoch'}
2328 0 0 583 @$recent && exists $recent->[-1]{'epoch'}

or 2 conditions

line l !l condition
827 0 3088 $self->locktimeout || 600
877 721 0 $other->recent_events || []
886 721 0 $self->recent_events || []
898 721 0 $other->dirtymark || 0
646 75 $self->dirtymark || 0
903 446 0 $merged->{'epoch'} || 0
919 22079 0 $oev->{'epoch'} || 0
1065 0 2707 $ret->{'Producers'} ||= {'File::Rsync::Mirror::Recentfile', "$VERSION", '$0', $0, 'time', &Time::HiRes::time()}
1234 1411 0 $self->max_files_per_connection || 42
1818 26 0 $self->rsync_options || {}
1926 33 10 $self->have_mirrored || 0
2069 0 0 $File::Rsync::Mirror::Recentfile::b->{'epoch'} || 0
0 0 $File::Rsync::Mirror::Recentfile::a->{'epoch'} || 0
2108 1646 0 $recent ||= []

or 3 conditions

line l !l&&r !l&&!r condition
423 316 290 380 $option{'force'} or $i == 0
760 11456 14583 0 $interval ||= $self->interval
929 3485 1212 17355 not $myepoch or &_bigfloatgt($oevepoch, $myepoch)
945 37596 11504 679 @$other_recent_filtered or @$my_recent
947 3623 17375 28102 not @$my_recent or @$other_recent_filtered and &_bigfloatge($other_recent_filtered->[0]{'epoch'}, $my_recent->[0]{'epoch'})
971 75 158 446 not $self->dirtymark or $other->dirtymark ne $self->dirtymark
1069 2671 36 0 $ret->{'dirtymark'} ||= &Time::HiRes::time()
1126 0 0 17 not $success or $@
1188 0 15 0 -l _ or not -d _
1253 0 0 5 not $success or $@
1534 0 0 6487 $err or not $data
1587 625 1380 0 0 != $first_item or -1 != $last_item
2008 1292 0 354 defined $path or defined $type
1292 0 354 defined $path or defined $type or defined $dirty_epoch
2096 1292 0 354 defined $path or defined $type
1292 0 354 defined $path or defined $type or defined $dirty_epoch
2135 0 32 0 not defined $merged->{'epoch'} or &_bigfloatlt($epoch, $merged->{'epoch'})
2177 0 0 32 not exists $recent->[0] or &_bigfloatgt($epoch, $recent->[0]{'epoch'})
2324 105 1563 1039 not defined $minmax->{'max'} or &_bigfloatlt($minmax->{'max'}, $recent->[0]{'epoch'})
2327 105 478 2124 not defined $minmax->{'min'} or &_bigfloatlt($minmax->{'min'}, $recent->[-1]{'epoch'})