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
585 0 14 27 defined $rfile and -e $rfile
770 0 0 25124 exists $seconds{$t} and $n =~ /^\d+$/
908 0 446 0 @$other_recent and &_bigfloatlt($other_recent->[-1]{'epoch'}, $oldest_allowed)
914 75 646 1356 @$my_recent and &_bigfloatlt($my_recent->[-1]{'epoch'}, $oldest_allowed)
927 21459 2950 27 $self->interval eq 'Z' and $oev->{'type'} eq 'delete'
24409 0 27 $self->interval eq 'Z' and $oev->{'type'} eq 'delete' and not $self->keep_delete_objects_forever
951 12904 18947 19732 @$other_recent_filtered and &_bigfloatge($other_recent_filtered->[0]{'epoch'}, $my_recent->[0]{'epoch'})
958 679 35965 10 defined $last_epoch and $event->{'epoch'} eq $last_epoch
1015 4375 190 9938 $merged and $into = $merged->{'into_interval'}
4565 517 9421 $merged and $into = $merged->{'into_interval'} and defined $self->_interval
1118 0 1 5 $self->_current_tempfile and not $self->_current_tempfile_fh
1163 555 0 271 $rec and $rec->{'recentepoch'}
1369 0 0 28 ref $path and ref $path eq 'ARRAY'
1395 0 0 0 $self->_my_ignore_link_stat_errors and join($", @err) =~ /^ rsync: \s link_stat /x
1427 0 0 0 $self->_my_ignore_link_stat_errors and join($", @err) =~ /^ rsync: \s link_stat /x
1454 6586 0 33 $rfile and -s $rfile
1612 2005 0 0 $options->{'max'} and @$re > $options->{'max'}
1694 18 0 23 $old_dirtymark and $new_dirtymark
18 18 5 $old_dirtymark and $new_dirtymark and $new_dirtymark ne $old_dirtymark
1854 0 0 0 $max_rsync_errors >= 0 and $no_success_count >= $max_rsync_errors
2063 1644 2 0 $self->verbose and @$batch > 1
2075 1646 0 0 $console and not $i % 50
2107 1614 0 32 defined $dirty_epoch and &_bigfloatgt($now, $dirty_epoch)
2114 769 0 877 $merged->{'epoch'} and not $setting_new_dirty_mark
2123 354 0 1292 defined $path and $path =~ s/^\Q$lrd\E//
2187 0 0 0 $memo_splicepos <= $#$recent && $epoch
2249 37 0 19 $self->_uptodateness_ever_reached and not $self->seeded
2269 0 0 21 defined $mtime and defined $minmax->{'mtime'}
0 21 0 defined $mtime and defined $minmax->{'mtime'} and $mtime > $minmax->{'mtime'}
2317 2712 105701 0 defined $Last_epoch and &_bigfloatge($recent->[$i]{'epoch'}, $Last_epoch)
2329 0 0 1668 @$recent && exists $recent->[0]{'epoch'}
2332 0 0 563 @$recent && exists $recent->[-1]{'epoch'}

or 2 conditions

line l !l condition
831 0 3088 $self->locktimeout || 600
881 721 0 $other->recent_events || []
890 721 0 $self->recent_events || []
902 721 0 $other->dirtymark || 0
646 75 $self->dirtymark || 0
907 446 0 $merged->{'epoch'} || 0
923 24436 0 $oev->{'epoch'} || 0
1069 0 2712 $ret->{'Producers'} ||= {'File::Rsync::Mirror::Recentfile', "$VERSION", '$0', $0, 'time', &Time::HiRes::time()}
1238 1462 0 $self->max_files_per_connection || 42
1822 26 0 $self->rsync_options || {}
1930 33 10 $self->have_mirrored || 0
2073 0 0 $File::Rsync::Mirror::Recentfile::b->{'epoch'} || 0
0 0 $File::Rsync::Mirror::Recentfile::a->{'epoch'} || 0
2112 1646 0 $recent ||= []

or 3 conditions

line l !l&&r !l&&!r condition
423 316 290 380 $option{'force'} or $i == 0
764 11480 14607 0 $interval ||= $self->interval
933 3485 1240 19684 not $myepoch or &_bigfloatgt($oevepoch, $myepoch)
949 42302 12904 679 @$other_recent_filtered or @$my_recent
951 3623 19732 31851 not @$my_recent or @$other_recent_filtered and &_bigfloatge($other_recent_filtered->[0]{'epoch'}, $my_recent->[0]{'epoch'})
975 75 158 446 not $self->dirtymark or $other->dirtymark ne $self->dirtymark
1073 2676 36 0 $ret->{'dirtymark'} ||= &Time::HiRes::time()
1130 0 0 17 not $success or $@
1192 0 15 0 -l _ or not -d _
1257 0 0 5 not $success or $@
1538 0 0 6487 $err or not $data
1591 570 1435 0 0 != $first_item or -1 != $last_item
2012 1292 0 354 defined $path or defined $type
1292 0 354 defined $path or defined $type or defined $dirty_epoch
2100 1292 0 354 defined $path or defined $type
1292 0 354 defined $path or defined $type or defined $dirty_epoch
2139 0 32 0 not defined $merged->{'epoch'} or &_bigfloatlt($epoch, $merged->{'epoch'})
2181 0 0 32 not exists $recent->[0] or &_bigfloatgt($epoch, $recent->[0]{'epoch'})
2328 105 1563 1044 not defined $minmax->{'max'} or &_bigfloatlt($minmax->{'max'}, $recent->[0]{'epoch'})
2331 105 458 2149 not defined $minmax->{'min'} or &_bigfloatlt($minmax->{'min'}, $recent->[-1]{'epoch'})