Branch Coverage

blib/lib/Data/CompactReadonly/V0/Dictionary.pm
Criterion Covered Total %
branch 41 42 97.6


line true false branch
16 5 48 $root->_fast_collections ? :
22 27 26 if ($root->_tied) { }
59 65574 65675 if (my $ptr = $class->_get_already_seen(%args, 'data', $item->{'data'})) { }
66 65619 53 if ($item->{'coerce_to_text'})
68 2 65617 unless ($node_class->VERSION)
70 0 2 if $@
87 2 1 !defined($element) ? :
3 108 unless defined $element and not ref $element
102 103 371 if ($key eq $element) { }
220 151 elsif ($key lt $element) { }
117 5 366 if $prev_candidate == $cur_candidate
124 1 15 if $self->count == 0
126 2 13 if ($@ =~ /doesn't exist/) { }
1 12 elsif ($@) { }
137 19 16 if ($self->{'cache'} and exists $self->{'cache'}{'keys'}{$n})
148 2 484 if (not defined $key or ref $key)
149 1 1 !defined($key) ? :
157 16 468 if ($self->{'cache'})
165 1 15 if ($self->{'cache'} and exists $self->{'cache'}{'values'}{$n})
174 15 87 if ($self->{'cache'})
195 1 6 if $self->count == 0