Branch Coverage

blib/lib/Mad/Mapper.pm
Criterion Covered Total %
branch 12 78 15.3


line true false branch
160 0 0 $1 ? :
162 0 0 $1 ? :
163 0 0 $1 ? :
164 0 0 $1 ? :
187 0 0 if $self->in_storage
228 0 0 $self->in_storage ? :
242 4 5 unless my $flag = shift()
244 5 0 if ($flag eq '-base') { }
0 0 elsif ($flag eq '-strict') { }
0 0 elsif (my $file = $flag and not $flag->can('new')) { }
251 5 0 if ($flag)
256 0 2 unless $COLUMNS{$caller}
260 9 5 UNIVERSAL::isa($_[0], $caller) ? :
261 5 1 unless UNIVERSAL::isa($_[0], $caller)
276 0 0 if ($cb) { }
283 0 0 unless $err
303 0 11 ref $_[0] eq 'ARRAY' ? :
314 0 0 ref $_[-1] eq 'CODE' ? :
316 0 0 $LOADED{$related_class}++ ? :
321 0 0 ref $err ? :
0 0 if $err
324 0 0 $sst_method ? :
332 0 0 if ($cb) { }
333 0 0 if ($fresh or not $self->{'cache'}{$ck}) { }
350 0 0 if $fresh
362 0 0 $LOADED{$related_class}++ ? :
379 0 0 if ($cb) { }
386 0 0 $err ? :
387 0 0 if %$res and not $err
395 0 0 if keys %$res
415 0 0 if ($cb) { }
424 0 0 if ($pk)
429 0 0 if keys %$res
439 0 0 if ($pk)
444 0 0 if keys %$res
454 0 0 if $pk and UNIVERSAL::isa($self->db, 'Mojo::Pg::Database')
458 0 8 unless $_[0]->pk
466 0 0 if ($cb) { }
492 1 0 $pk ? :