Condition Coverage

blib/lib/Jifty/DBI/Handle.pm
Criterion Covered Total %
condition 41 89 46.0


and 3 conditions

line !l l&&!r l&&r condition
98 0 31 1 $args{'driver'} and not $self->isa('Jifty::DBI::Handle::' . $args{'driver'})
113 31 0 0 $self->dbh && $self->dbh->ping
575 497 1 0 $@ || !$executed and not $self->dbh->ping
723 4 4 80 $value ne '' && $value ne q[''] && $operator =~ /^(?:(?:NOT )?LIKE|!?=|IN)$/i && !($value =~ /^['"]?\d+['"]?$/)
948 3 9 0 $args{'table2'} and UNIVERSAL::isa($args{'table2'}, 'Jifty::DBI::Collection')
963 0 0 3 $args{'collection'}{'joins'}{$args{'alias2'}} and lc $args{'collection'}{'joins'}{$args{'alias2'}}{'type'} eq 'cross'
973 0 0 0 $args{'collection'}{'joins'}{$args{'alias2'}} and lc $args{'collection'}{'joins'}{$args{'alias2'}}{'type'} eq 'cross'
1043 24 1 19 !$processed{$_} && $processed{$$joins{$_}{'depends_on'}}
1095 22 1 14 !$processed{$_} && $processed{$$joins{$_}{'depends_on'}}
1152 0 0 1 $$join{'depends_on'} and $$join{'depends_on'} eq $args{'alias'}
1165 0 3 0 $$_{'value'} and $$_{'value'} =~ /^\Q$args{'alias'}.\E/
1187 0 0 0 $conditions[$i] and $conditions[$i] eq '('
0 0 0 $conditions[$i] and $conditions[$i] eq ')'
1423 1 0 30 $self->dbh and $self->dbh
1 30 0 $self->dbh and $self->dbh and eval { do { $self->dbh->{'InactiveDestroy'} } }

or 2 conditions

line l !l condition
106 0 31 $self->dsn || ''
683 0 0 $sth->fetchrow_arrayref->[0] || ''
997 3 9 $args{'collection'}{'joins'}{$alias} ||= {}
1050 0 19 $$meta{'entry_aggregator'} || 'AND'

or 3 conditions

line l !l&&r !l&&!r condition
58 0 32 0 ref $proto || $proto
113 31 0 0 not $self->dbh && $self->dbh->ping or $self->dsn ne $dsn
115 31 0 0 'DBI'->connect($self->dsn, $args{'user'}, $args{'password'}, $args{'extra'}) || Carp::croak("Connection failed: $DBI::errstr\n")
199 0 31 0 $args{'dbname'} ||= delete $args{'database'}
394 1220 0 33 $Jifty::DBI::Handle::DBIHandle{$self} ||= $Jifty::DBI::Handle::PrevHandle
575 0 1 497 $@ || !$executed
592 0 1 497 $@ or not $executed
593 1 0 0 $self->dbh->errstr || $@
686 0 0 0 $1 || $ver
954 0 0 0 $x->type eq 'serial' or $x->distinct
1014 0 0 12 $args{'expression'} || "$args{'alias1'}.$args{'column1'}"
1202 35 0 13 @conditions or @tmp