Condition Coverage

blib/lib/Audit/DBI.pm
Criterion Covered Total %
condition 15 47 31.9


and 3 conditions

line !l l&&!r l&&r condition
263 3 0 45 defined $args{$arg} and $args{$arg} ne ''
266 14 0 0 defined $limit_rate_timespan and !($limit_rate_timespan =~ /^\d+$/) || $limit_rate_timespan == 0
268 14 0 0 defined $limit_rate_unique_key and length $limit_rate_unique_key == 0
296 14 0 0 defined $args{'file'} and defined $args{'line'}
506 0 17 0 defined $dbh and not Data::Validate::Type::is_instance($dbh, 'class', 'DBI::db')
541 0 1 0 defined $$subject{'ids'} and not Data::Validate::Type::is_arrayref($$subject{'ids'})
560 0 2 0 defined $$value{'values'} and Data::Validate::Type::is_arrayref($$value{'values'})
648 0 0 1 defined $$subject{'ids'} and scalar @{$$subject{'ids'};} != 0
669 0 0 2 defined $$value{'values'} and scalar @{$$value{'values'};} != 0
801 0 0 1 defined $drop_if_exist and $drop_if_exist
1018 0 0 0 defined $key and $key =~ /\w/
1051 0 0 0 defined $key and $key =~ /\w/

or 2 conditions

line l !l condition
1207 5 0 $value || ''

or 3 conditions

line l !l&&r !l&&!r condition
266 0 0 0 !($limit_rate_timespan =~ /^\d+$/) || $limit_rate_timespan == 0
293 3 11 0 $args{'event_time'} ||= time
1167 14 0 0 $dbh->do(sprintf("\n\t\t\t\t\tINSERT INTO audit_events( %s )\n\t\t\t\t\tVALUES ( %s )\n\t\t\t\t", join(', ', @fields), join(', ', ('?') x scalar(@fields))), {}, @values) || croak('Cannot execute SQL: ' . $dbh->errstr)