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 65568 65663 if (my $ptr = $class->_get_already_seen(%args, 'data', $item->{'data'})) { }
66 65610 50 if ($item->{'coerce_to_text'})
68 2 65608 unless ($node_class->VERSION)
70 0 2 if $@
87 2 1 !defined($element) ? :
3 105 unless defined $element and not ref $element
102 100 357 if ($key eq $element) { }
215 142 elsif ($key lt $element) { }
117 5 352 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 467 if (not defined $key or ref $key)
149 1 1 !defined($key) ? :
157 16 451 if ($self->{'cache'})
165 1 15 if ($self->{'cache'} and exists $self->{'cache'}{'values'}{$n})
174 15 84 if ($self->{'cache'})
195 1 6 if $self->count == 0