Branch Coverage

blib/lib/Mandel/Document.pm
Criterion Covered Total %
branch 34 62 54.8


line true false branch
9 0 15 $ENV{'MANDEL_CURSOR_DEBUG'} ? :
17 3 8 if (@_) { }
6 2 elsif ($raw->{'_id'}) { }
19 1 2 ref $_[0] ? :
47 1 12 if $self->{'id'}
69 1 1 unless $_[0]{'dirty'}
70 0 1 unless keys %{$_[0]{'dirty'};}
78 0 0 if ($changes)
92 0 0 unless $_[1]
96 0 0 $cb ? :
99 0 0 unless $cb
110 0 0 if ($cb) { }
115 0 0 unless $err
137 0 0 if (not $self->is_changed and $self->in_storage)
138 0 0 if $cb
147 0 0 if ($cb) { }
152 0 0 unless $err
176 0 8 unless $pointer =~ s[^/][]
183 8 18 &looks_like_number($p) ? :
185 16 10 if ($type eq 'HASH') { }
8 2 elsif ($type eq 'ARRAY') { }
186 13 3 if (@path) { }
187 1 0 &looks_like_number($path[0]) ? :
194 1 7 if ($want ne 'INDEX') { }
5 2 elsif (@path) { }
198 0 2 &looks_like_number($path[0]) ? :
209 5 0 if defined $field
215 3 10 @_ == 1 ? :
221 1 25 if ($args{$_} and $args{$_} =~ /::/)
225 11 2 unless ($args{'name'})
247 0 0 if @_ == 1