blib/lib/Karas.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 12 | 42 | 28.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
216 | 7 | 0 | 4 | @pk == 1 and defined $last_insert_id |
line | l | !l | condition |
---|---|---|---|
47 | 0 | 10 | $args{'connect_info'}[3]{'RaiseError'} //= 1 |
48 | 0 | 10 | $args{'connect_info'}[3]{'PrintError'} //= 0 |
49 | 0 | 10 | $args{'connect_info'}[3]{'AutoCommit'} //= 1 |
50 | 0 | 10 | $args{'connect_info'}[3]{'ShowErrorStatement'} //= 1 |
51 | 0 | 10 | $args{'connect_info'}[3]{'AutoInactiveDestroy'} //= 1 |
80 | 0 | 0 | $args || {} |
140 | 0 | 7 | $$opt{'cols'} ||= [\'*'] |
163 | 0 | 0 | $$opt{'cols'} ||= [\'*'] |
284 | 0 | 1 | $set ||= {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
60 | 0 | 10 | 0 | $$self{'query_builder'} ||= 'Karas::QueryBuilder'->new('driver', $self->_driver_name) |
66 | 13 | 10 | 0 | $$self{'driver_name'} //= $self->dbh->{'Driver'}{'Name'} |
109 | 0 | 0 | 0 | ref $self || $self |
110 | 0 | 0 | 0 | $args{'namespace'} //= do { if ($class eq 'Karas') { state $i = 0; $class . '::Anon' . $i++; } else { $class; } } |
164 | 0 | 0 | 0 | delete $$opt{'page'} // Carp::croak('Missing mandatory parameter: page') |
165 | 0 | 0 | 0 | delete $$opt{'rows'} // Carp::croak('Missing mandatory parameter: rows') |
194 | 0 | 0 | 0 | $table_name //= $self->guess_table_name($sql) |