Condition Coverage

blib/lib/Mad/Mapper.pm
Criterion Covered Total %
condition 3 45 6.6


and 3 conditions

line !l l&&!r l&&r condition
244 0 0 0 my $file = $flag and not $flag->can('new')
387 0 0 0 %$res and not $err
454 0 0 0 $pk and UNIVERSAL::isa($self->db, 'Mojo::Pg::Database')

or 2 conditions

line l !l condition
52 0 5 $ENV{'MAD_DEBUG'} || 0
318 0 0 $_ // ''
386 0 0 $res->hash || {}
394 0 0 $self->db->query(@sst)->hash || {}
422 0 0 eval { do { $res->hash } } || {}
437 0 0 eval { do { $res->hash } } || {}

or 3 conditions

line l !l&&r !l&&!r condition
302 0 0 11 ref $_[0] || $_[0]
333 0 0 0 $fresh or not $self->{'cache'}{$ck}
352 0 0 0 $self->{'cache'}{$ck} ||= $self->db->query(@sst)->hashes->map(sub { $related_class->new($_)->in_storage(1); } )
369 0 0 5 ref $_[0] || $_[0]
425 0 0 0 $res->{$pk} ||= $db->dbh->last_insert_id(undef, undef, $self->table, $self->pk)
426 0 0 0 $res->{$pk} ||= eval { do { $res->sth->mysql_insertid } }
440 0 0 0 $res->{$pk} ||= $db->dbh->last_insert_id(undef, undef, $self->table, $self->pk)
441 0 0 0 $res->{$pk} ||= eval { do { $res->sth->mysql_insertid } }