Branch Coverage

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


line true false branch
164 0 0 $1 ? :
166 0 0 $1 ? :
167 0 0 $1 ? :
168 0 0 $1 ? :
191 0 0 if $self->in_storage
232 0 0 $self->in_storage ? :
246 4 6 unless my $flag = shift()
248 6 0 if ($flag eq '-base') { }
0 0 elsif ($flag eq '-strict') { }
0 0 elsif (my $file = $flag and not $flag->can('new')) { }
255 6 0 if ($flag)
260 0 2 unless $COLUMNS{$caller}
264 9 6 UNIVERSAL::isa($_[0], $caller) ? :
265 5 2 unless UNIVERSAL::isa($_[0], $caller)
280 0 0 if ($cb) { }
287 0 0 unless $err
307 0 11 ref $_[0] eq 'ARRAY' ? :
318 0 0 ref $_[-1] eq 'CODE' ? :
320 0 0 $LOADED{$related_class}++ ? :
325 0 0 ref $err ? :
0 0 if $err
328 0 0 $sst_method ? :
336 0 0 if ($cb) { }
337 0 0 if ($fresh or not $self->{'cache'}{$ck}) { }
354 0 0 if $fresh
366 0 0 $LOADED{$related_class}++ ? :
383 0 0 if ($cb) { }
390 0 0 $err ? :
391 0 0 if %$res and not $err
399 0 0 if keys %$res
419 0 0 if ($cb) { }
428 0 0 if ($pk)
433 0 0 if keys %$res
443 0 0 if ($pk)
448 0 0 if keys %$res
458 0 0 if $pk and UNIVERSAL::isa($self->db, 'Mojo::Pg::Database')
462 0 8 unless $_[0]->pk
470 0 0 if ($cb) { }
496 1 0 $pk ? :