Branch Coverage

blib/lib/Brackup/PositionedChunk.pm
Criterion Covered Total %
branch 16 24 66.6


line true false branch
21 0 115 ref $class ? :
27 0 115 if %opts
28 0 115 unless $$self{'offset'} =~ /^\d+$/
29 0 115 unless $$self{'length'} =~ /^\d+$/
67 0 108 unless my $n_chunks = $$self{'file'}->chunks
69 77 31 if ($n_chunks == 1)
72 0 77 unless $self->length == $$self{'file'}->size
80 3 28 if ($dig = $cache->get($key))
93 72 66 if ($$self{'_raw_chunkref'})
99 0 66 unless my $fh = 'IO::File'->new($fullpath, 'r')
102 0 66 unless my $ifh = 'IO::InnerFile'->new($fh, $$self{'offset'}, $$self{'length'})
114 155 156 if (my(@rcpts) = $self->root->gpg_rcpts) { }