Branch Coverage

blib/lib/Crypt/Rhash.pm
Criterion Covered Total %
branch 19 40 47.5


line true false branch
75 0 5 unless scalar @_ > 0
77 0 7 if (ref $id or not scalar $id or (scalar $id & 2147483647) != $id)
82 2 3 if (scalar @hash_ids == 1 and ($hash_ids[0] & $hash_ids[0] - 1) != 0)
88 0 5 unless my $context = &rhash_init_multi_wrapper(\@hash_ids)
101 3 0 if $self->{'context'}
119 1 2 if (defined $start)
120 0 1 unless seek $fd, scalar $start, 0
124 1 2 if (defined $size) { }
126 1 0 $left < 8192 ? :
0 1 unless $res = read($fd, $data, $left < 8192 ? $left : 8192)
138 3 0 defined $res ? :
144 0 2 unless open my $fd, "<", $file
225 2 2 if (scalar @hash_ids) { }
227 0 5 if (ref $id or not scalar $id or (scalar $id & 2147483647) != $id)
245 0 0 if $field =~ /^(rhash_|raw2)/
246 0 0 unless @_
247 0 0 unless defined $self
249 0 0 unless $type = ref $self and $type eq $pkg
250 0 0 exists $self->{$field} ? :
260 0 1 &is_base32($hash_id) ? :