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
248 0 0 0 my $file = $flag and not $flag->can('new')
391 0 0 0 %$res and not $err
458 0 0 0 $pk and UNIVERSAL::isa($self->db, 'Mojo::Pg::Database')

or 2 conditions

line l !l condition
54 0 5 $ENV{'MAD_DEBUG'} || 0
322 0 0 $_ // ''
390 0 0 $res->hash || {}
398 0 0 $self->db->query(@sst)->hash || {}
426 0 0 eval { do { $res->hash } } || {}
441 0 0 eval { do { $res->hash } } || {}

or 3 conditions

line l !l&&r !l&&!r condition
306 0 0 11 ref $_[0] || $_[0]
337 0 0 0 $fresh or not $self->{'cache'}{$ck}
356 0 0 0 $self->{'cache'}{$ck} ||= $self->db->query(@sst)->hashes->map(sub { $related_class->new($_)->in_storage(1); } )
373 0 0 6 ref $_[0] || $_[0]
429 0 0 0 $res->{$pk} ||= $db->dbh->last_insert_id(undef, undef, $self->table, $self->pk)
430 0 0 0 $res->{$pk} ||= eval { do { $res->sth->mysql_insertid } }
444 0 0 0 $res->{$pk} ||= $db->dbh->last_insert_id(undef, undef, $self->table, $self->pk)
445 0 0 0 $res->{$pk} ||= eval { do { $res->sth->mysql_insertid } }