Branch Coverage

blib/lib/Csistck/Test/FileBase.pm
Criterion Covered Total %
branch 13 42 30.9


line true false branch
29 0 11 unless -e $self->dest
33 0 11 if (defined $self->src and $self->can('file_check'))
40 3 8 $ret == 1 ? :
49 0 3 if (defined $self->src and $self->can('file_repair'))
50 0 0 if (-e $self->dest)
51 0 0 if -d $self->dest
53 0 0 if -f $self->dest and not -w $self->dest
64 3 0 $ret == 1 ? :
72 0 0 unless -f -e -r $self->dest
76 0 0 if (defined $self->src and $self->can('file_diff'))
88 0 14 unless $self->mode
90 0 14 unless $mode =~ /^[0-7]{3,4}$/
101 14 0 unless $self->uid
102 0 0 unless $self->uid =~ /^[0-9]+$/
111 14 0 unless $self->gid
112 0 0 unless $self->gid =~ /^[0-9]+$/
122 11 0 if ($fh)
125 3 8 if $curmode eq $mode
140 0 0 if ($fh)
158 0 0 if ($fh)
174 0 0 unless scalar @files == 2