Branch Coverage

blib/lib/App/Hashl.pm
Criterion Covered Total %
branch 19 32 59.3


line true false branch
32 0 1 unless (defined $ref->{'version'})
43 1 4 if ($bytes == 0)
61 0 22 if ((stat $file)[7] == 0)
64 1 21 if ($self->{'config'}{'read_size'} == 0)
71 0 21 unless open my $fh, '<', $file
73 0 21 unless binmode $fh
76 0 21 unless read $fh, $data, $self->{'config'}{'read_size'}
77 0 21 unless close $fh
88 3 7 if ($self->{'ignored'}{$hash})
95 5 1 if ($file->{'hash'} eq $hash)
117 0 0 scalar $self->files == 1 ? :
0 0 scalar $self->ignored == 1 ? :
163 0 0 if ($self->file($file) and $self->file($file)->{'mtime'} == $mtime and $self->file($file)->{'size'} == $size)
172 2 3 if ($self->{'ignored'}{$hash})
173 1 1 if ($opt{'unignore'}) { }
193 4 0 if (exists $self->{'ignored'})