Condition Coverage

blib/lib/App/DistSync.pm
Criterion Covered Total %
condition 0 199 0.0


and 2 conditions

line l !l condition
221 0 0 carp(q[Can't select directory]) and return
910 0 0 carp(q[Can't specified directory]) and return {}
946 0 0 carp(q[Can't specified file]) and return 0
947 0 0 carp(q[Can't specified manifest-hash]) and return 0

and 3 conditions

line !l l&&!r l&&r condition
238 0 0 0 -e $props{'file_manifest'} && -s $props{'file_manifest'}
241 0 0 0 -e $props{'file_manidel'} && -s $props{'file_manidel'}
244 0 0 0 -e $props{'file_mirrors'} && -s $props{'file_mirrors'}
255 0 0 0 $to and $to =~ /^[0-9]{1,11}$/
270 0 0 0 -e $self->{'file_maniskip'} and -z $self->{'file_maniskip'}
323 0 0 0 -e $self->{'file_manidel'} and -z $self->{'file_manidel'}
345 0 0 0 -e $self->{'file_mirrors'} and -z $self->{'file_mirrors'}
365 0 0 0 -e $self->{'file_readme'} and -z $self->{'file_readme'}
394 0 0 0 $dellist and ref $dellist eq 'HASH'
406 0 0 0 $deltime and time - $deltime > $expire
475 0 0 0 $remote_meta and ref $remote_meta eq 'ARRAY' || ref $remote_meta eq 'YAML::Tiny'
0 0 0 $remote_meta and ref $remote_meta eq 'HASH'
485 0 0 0 $remote_meta and $remote_meta->{'status'}
525 0 0 0 $mt_l and $mt_r
0 0 0 $mt_l and $mt_r and $mt_l == $mt_r
545 0 0 0 $mtmp{$k} and $mtmp{$k} == 1
546 0 0 0 $local_manifest->{$k} and $remote_manifest->{$k}
549 0 0 0 $mt_l > $mt_r and $mt_l - $mt_r > _expire('+1m')
551 0 0 0 $mt_l < $mt_r and $mt_r - $mt_l > _expire('+1m')
600 0 0 0 $fetch_mirr->{'status'} and -z $self->{'file_mirrors'} || $fetch_mirr->{'mtime'} > $self->{'mtime_mirrors'}
605 0 0 0 $mcnt and $mcnt > 1
662 0 0 0 $list and ref $list eq 'ARRAY'
693 0 0 0 $size_fact and $size_fact == $size
725 0 0 0 $mkerr and ref $mkerr eq 'ARRAY'
0 0 0 $mkerr and ref $mkerr eq 'ARRAY' and @$mkerr
727 0 0 0 $e and ref $e eq 'HASH'
790 0 0 0 $file and -e $file
806 0 0 0 $r_pid and $r_pid =~ /^[0-9]{1,11}$/
0 0 0 $r_pid and $r_pid =~ /^[0-9]{1,11}$/ and kill 0, $r_pid
838 0 0 0 defined $file and -e $file
848 0 0 0 -e $file and -r $file
869 0 0 0 defined $mfile and -e $mfile
0 0 0 defined $mfile and -e $mfile and -r $mfile
0 0 0 defined $mfile and -e $mfile and -r $mfile and -s $mfile
881 0 0 0 $skipflag and $_ =~ m[^\s*\!\!perl/regexp\s*]i
910 0 0 0 defined $dir and -e $dir
947 0 0 0 defined $mani and ref $mani eq 'HASH'
1042 0 0 0 $code >= 200 and $code < 400
1043 0 0 0 -e $file and -s $file
1067 0 0 0 defined $koef and defined $d
1095 0 0 0 $sl and defined $st
0 0 0 $sl and defined $st and ref $sl eq 'HASH'
1096 0 0 0 exists $sl->{$st} and defined $sl->{$st}

or 2 conditions

line l !l condition
217 0 0 $props{'timeout'} //= 30
396 0 0 $_->[0] || 0
476 0 0 $remote_meta->[0] || {}
486 0 0 $remote_meta->{'uri'} || 'localhost'
487 0 0 $fetch_meta->{'mtime'} || 0
523 0 0 $local_manifest->{$k}[0] || 0
524 0 0 $remote_manifest->{$k}[0] || 0
547 0 0 $local_manifest->{$k}[0] || 0
548 0 0 $remote_manifest->{$k}[0] || 0
558 0 0 $sync_list{$k} || []
575 0 0 $sync_list{$k} || []
591 0 0 $fetch_mani->{'code'} || 'UNDEFINED'
604 0 0 scalar keys %$remote_mirr || 0
607 0 0 $sync_list{$k} || []
663 0 0 $self->{'manifest'}{$k}[0] || 0
666 0 0 $App::DistSync::b->{'mtime'} || 0
0 0 $App::DistSync::a->{'mtime'} || 0
692 0 0 $fetch_file->{'size'} || 0
776 0 0 $self->{'uri'} || 'localhost'
923 0 0 (stat $_)[9] || 0
0 0 -s $_ || 0
970 0 0 $d->{'mtime'} || 0
0 0 $d->{'size'} || 0
1051 0 0 shift() || 0
1089 0 0 { => sub { qr/$_[0]/; } , i => sub { qr/$_[0]/i; } , ix => sub { qr/$_[0]/xi; } , m => sub { qr/$_[0]/m; } , mi => sub { qr/$_[0]/im; } , mix => sub { qr/$_[0]/mix; } , ms => sub { qr/$_[0]/ms; } , msi => sub { qr/$_[0]/ism; } , msix => sub { qr/$_[0]/imsx; } , msx => sub { qr/$_[0]/msx; } , mx => sub { qr/$_[0]/mx; } , s => sub { qr/$_[0]/s; } , si => sub { qr/$_[0]/is; } , six => sub { qr/$_[0]/six; } , sx => sub { qr/$_[0]/sx; } , x => sub { qr/$_[0]/x; } }->{$flags} || sub { qr/$_[0]/; }

or 3 conditions

line l !l&&r !l&&!r condition
216 0 0 0 $props{'pid'} ||= $$
475 0 0 0 ref $remote_meta eq 'ARRAY' || ref $remote_meta eq 'YAML::Tiny'
600 0 0 0 -z $self->{'file_mirrors'} || $fetch_mirr->{'mtime'} > $self->{'mtime_mirrors'}
679 0 0 0 $mt_r or not $mt_l