Branch Coverage

blib/lib/Deeme/Backend/DBI.pm
Criterion Covered Total %
branch 21 40 52.5


line true false branch
15 0 1 unless $self->database
25 0 68 ref $_[0]->database eq 'ARRAY' ? :
32 0 68 if $_[0]->_connection->{'AutoCommit'} == 0
42 0 2 if (@tables) { }
44 0 0 unless $_
45 0 0 if $_ eq $table
54 2 0 unless $@
63 0 1 unless $self->_table_exists('deeme_events')
70 0 1 unless $self->_table_exists('deeme_functions')
101 2 24 if @{$functions;} == 0
102 13 11 if $deserialize == 1
166 0 2 if scalar @{$onces;} != scalar @functions_id
169 2 0 unless @functions_id == 0
173 0 2 if ($@)
190 2 8 if (my $e_id = $self->_event_name_to_id($name)) { }
191 0 2 if $self->_connection->selectrow_array('SELECT id FROM deeme_functions WHERE events_id = ? AND function=? LIMIT 1', undef, $e_id, $cb)
249 0 4 if ($@)
265 0 2 if scalar @{$functions;} == 0
284 0 3 if ($serialize == 1) { }
297 0 2 if ($@)