lib/DBIx/Oro/Driver/SQLite.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 51 | 89 | 57.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
92 | 21 | 0 | 6 | $self->{'init'} and (ref $self->{'init'} || '') eq 'CODE' |
99 | 1 | 26 | 0 | $self->created and $import || $cb |
174 | 27 | 0 | 0 | defined $self->{'tid'} and $self->{'tid'} != 'threads'->tid |
217 | 0 | 6 | 5 | $_[-1] and ref $_[-1] |
6 | 0 | 5 | $_[-1] and ref $_[-1] and ref $_[-1] eq 'HASH' | |
272 | 33 | 905 | 0 | ref $_[0] eq 'HASH' and ref $_[1] |
295 | 905 | 0 | 0 | $prop and my $oc = $$prop{-'on_conflict'} |
428 | 1 | 5 | 4 | $rv and $type eq 'insert' |
6 | 4 | 0 | $rv and $type eq 'insert' and ${$self->{'autocommit'};} | |
479 | 0 | 0 | 2 | $_[0] and $_[0] =~ /^[pcnalsx]+$/i |
488 | 3 | 0 | 0 | $_[0] and $_[0] =~ /^[pcnalsx]+$/i |
661 | 0 | 0 | 0 | $_[0] and not $self->{'foreign_keys'} |
0 | 0 | 0 | not $_[0] and $self->{'foreign_keys'} | |
696 | 4 | 0 | 5 | $num and $num =~ /^\d+/o |
line | l | !l | condition |
---|---|---|---|
38 | 0 | 27 | $param{'created'} //= 0 |
46 | 27 | 0 | $param{'file'} // '' |
92 | 6 | 0 | ref $self->{'init'} || '' |
146 | 0 | 30 | $self->{'busy_timeout'} || 300 |
159 | 0 | 0 | $_[0]{'file'} // '' |
218 | 0 | 5 | delete $_[-1]{-'secure'} || 0 |
439 | 2 | 4 | $file //= '' |
485 | 3 | 0 | shift() || 'content' |
586 | 2 | 0 | ($column // $field) // 'content' |
687 | 5 | 0 | ${$self->{'autocommit'};} || 0 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
49 | 1 | 23 | 3 | not $file or $file eq ':memory:' |
99 | 0 | 6 | 20 | $import || $cb |
284 | 0 | 0 | 1351 | ref $key or $key =~ /$DBIx::Oro::KEY_REGEX/ |
537 | 6 | 6 | 10 | $_ eq 'p' or $_ eq 'c' |
12 | 2 | 8 | $_ eq 'p' or $_ eq 'c' or $_ eq 'n' | |
0 | 2 | 6 | $_ eq 'a' or $_ eq 'l' | |
2 | 2 | 4 | $_ eq 'a' or $_ eq 'l' or $_ eq 's' | |
586 | 2 | 0 | 0 | $column // $field |
618 | 8 | 0 | 4 | $snippet{$_} // $default[$i] |