Branch Coverage

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


line true false branch
72 0 15 $ENV{'MANDEL_CURSOR_DEBUG'} ? :
98 3 8 if (@_) { }
6 2 elsif ($raw->{'_id'}) { }
100 1 2 ref $_[0] ? :
172 1 12 if $self->{'id'}
237 1 1 unless $_[0]{'dirty'}
238 0 1 unless keys %{$_[0]{'dirty'};}
259 0 0 if ($changes)
273 0 0 unless $_[1]
277 0 0 $cb ? :
280 0 0 unless $cb
301 0 0 if ($cb) { }
306 0 0 unless $err
341 0 0 if (not $self->is_changed and $self->in_storage)
342 0 0 if $cb
351 0 0 if ($cb) { }
356 0 0 unless $err
389 0 8 unless $pointer =~ s[^/][]
396 8 18 &looks_like_number($p) ? :
398 16 10 if ($type eq 'HASH') { }
8 2 elsif ($type eq 'ARRAY') { }
399 13 3 if (@path) { }
400 1 0 &looks_like_number($path[0]) ? :
407 1 7 if ($want ne 'INDEX') { }
5 2 elsif (@path) { }
411 0 2 &looks_like_number($path[0]) ? :
422 5 0 if defined $field
434 3 10 @_ == 1 ? :
440 1 25 if ($args{$_} and $args{$_} =~ /::/)
444 11 2 unless ($args{'name'})
475 0 0 if @_ == 1