Condition Coverage

blib/lib/DBIx/Simple/Class.pm
Criterion Covered Total %
condition 52 123 42.2


and 3 conditions

line !l l&&!r l&&r condition
352 2 0 0 $allow and not ref $allow
10 0 1 $allow and not ref $allow
8 0 0 $allow and not ref $allow
0 0 2 $allow and not ref $allow
20 0 4 $allow and not ref $allow
4 0 2 $allow and not ref $allow
2 0 0 $allow and not ref $allow
7 0 1 $allow and not ref $allow
7 0 0 $allow and not ref $allow
384 49 15 4 ref $args and keys %$args

or 2 conditions

line l !l condition
54 2 5 shift() || ''
62 62 5 $$UNQUOTED{$class} //= {}
352 0 0 0 ($s->CHECKS->{'data'} ? $s->CHECKS->{'data'}{'allow'} : '') || ''
0 0 0 ($s->CHECKS->{'disabled'} ? $s->CHECKS->{'disabled'}{'allow'} : '') || ''
0 0 0 ($s->CHECKS->{'group'} ? $s->CHECKS->{'group'}{'allow'} : '') || ''
0 0 0 ($s->CHECKS->{'group_id'} ? $s->CHECKS->{'group_id'}{'allow'} : '') || ''
1 0 0 ($s->CHECKS->{'group_name'} ? $s->CHECKS->{'group_name'}{'allow'} : '') || ''
0 0 0 ($s->CHECKS->{'id'} ? $s->CHECKS->{'id'}{'allow'} : '') || ''
0 0 0 ($s->CHECKS->{'id'} ? $s->CHECKS->{'id'}{'allow'} : '') || ''
0 0 0 ($s->CHECKS->{'id'} ? $s->CHECKS->{'id'}{'allow'} : '') || ''
0 0 0 ($s->CHECKS->{q[is' enabled]} ? $s->CHECKS->{q[is' enabled]}{'allow'} : '') || ''
376 1 3 $self->CHECKS->{$key} || {}

or 3 conditions

line l !l&&r !l&&!r condition
54 7 2 5 $$QUOTE_IDENTIFIERS{$class} //= shift() || ''
60 5 0 62 ref $_[0] || $_[0]
168 15 0 0 $$SQL_CACHE{$class}{$args} || $$SQL{$class}{$args} || $$SQL{$args} || $args
194 98 2 0 ($_[1] ? $DBIx = $_[1] : $DBIx) || croak('DBIx::Simple is not instantiated. Please first do ' . $_[0] . '->dbix(DBIx::Simple->connect($DSN,$u,$p,{...})')
209 16 1 0 Params::Check::check($class->CHECKS, $fields) || croak(Params::Check::last_error())
249 3 4 0 $$SQL_CACHE{$class}{'SELECT_BY_PK'} || $class->SQL('SELECT_BY_PK')
286 2 0 41 $class->ALIASES->{$_} || $_
352 4 0 0 $$s{'data'}{'data'} //= $s->CHECKS->{'data'}{'default'}
2 0 0 $$s{'data'}{'disabled'} //= $s->CHECKS->{'disabled'}{'default'}
0 0 0 $$s{'data'}{'group'} //= $s->CHECKS->{'group'}{'default'}
0 1 0 $$s{'data'}{'group_id'} //= $s->CHECKS->{'group_id'}{'default'}
0 0 0 $$s{'data'}{'group_name'} //= $s->CHECKS->{'group_name'}{'default'}
0 0 0 $$s{'data'}{'id'} //= $s->CHECKS->{'id'}{'default'}
4 0 0 $$s{'data'}{'id'} //= $s->CHECKS->{'id'}{'default'}
3 0 0 $$s{'data'}{'id'} //= $s->CHECKS->{'id'}{'default'}
386 7 4 0 $self->ALIASES->{$field} || $field
402 9 41 0 $self->ALIASES->{$args} || $args
430 1 3 0 $$self{'SQL_UPDATE'} ||= do { my $SET = join(', ', map({$dbh->quote_identifier($_) . '=? ';} keys %{$$self{'data'};})); 'UPDATE ' . $self->TABLE . " SET $SET WHERE $pk=?" }
449 16 5 0 $$SQL_CACHE{$class}{'INSERT'} || $class->SQL('INSERT')
453 1 13 0 $$self{'data'}{$pk} ||= $self->dbh->last_insert_id(undef, undef, $self->TABLE, $pk)