Condition Coverage

blib/lib/CAPE/Utils.pm
Criterion Covered Total %
condition 0 125 0.0


and 3 conditions

line !l l&&!r l&&r condition
155 0 0 0 defined $opts{'where'} and $opts{'where'} =~ /\;/
201 0 0 0 defined $opts{'where'} and $opts{'where'} =~ /\;/
240 0 0 0 defined $opts{'where'} and $opts{'where'} =~ /\;/
333 0 0 0 $column eq 'clock' || $column eq 'added_on' and $opts{'pending_time_clip'}
0 0 0 $column eq "target" and $opts{'pending_target_clip'}
376 0 0 0 defined $opts{'where'} and $opts{'where'} =~ /\;/
422 0 0 0 defined $opts{'where'} and $opts{'where'} =~ /\;/
515 0 0 0 $column eq 'clock' || $column eq 'added_on' || $column eq 'started_on' and $opts{'running_time_clip'}
0 0 0 $column eq "target" and $opts{'running_target_clip'}
565 0 0 0 defined $opts{'where'} and $opts{'where'} =~ /\;/
569 0 0 0 defined $opts{'order'} and not $opts{'order'} =~ /^[0-9a-zA-Z]+$/
575 0 0 0 defined $opts{'limit'} and not $opts{'limit'} =~ /^[0-9]+$/
584 0 0 0 defined $opts{'direction'} and $opts{'direction'} ne 'desc' || $opts{'direction'} ne 'asc'
642 0 0 0 defined $opts{'where'} and $opts{'where'} =~ /\;/
757 0 0 0 $column eq 'clock' || $column eq 'added_on' || $column eq 'started_on' || $column eq 'completed_on' || $column eq 'analysis_started_on' || $column eq 'analysis_finished_on' || $column eq 'processing_started_on' || $column eq 'processing_finished_on' || $column eq 'signatures_started_on' || $column eq 'signatures_finished_on' || $column eq 'reporting_started_on' || $column eq 'reporting_finished_on' || $column eq 'latest' and $opts{'task_time_clip'}
0 0 0 $column eq "target" and $opts{'task_target_clip'}
848 0 0 0 defined $self->{'config'}{$item}{'check'} and defined $self->{'config'}{$item}{'munge'}
995 0 0 0 defined $opts{'where'} and $opts{'where'} =~ /\;/
1015 0 0 0 defined $opts{$var_to_check} and $opts{$var_to_check} =~ /[\\\']/
1105 0 0 0 defined $opts{$item . "_like"} and $opts{$item . "_like"}
1200 0 0 0 not defined $opts{'clock'} and $self->{'config'}{'_'}{'set_clock_to_now'}
1242 0 0 0 defined $opts{'unique'} and $opts{'unique'}
1250 0 0 0 $opts{'enforce_timeout'} and $opts{'enforce_timeout'}
1366 0 0 0 $self->{'config'}{'_'}{'auth'} ne 'ip' || $self->{'config'}{'_'}{'auth'} ne 'either' and not defined $opts{'apikey'}
1373 0 0 0 $self->{'config'}{'_'}{'auth'} ne "ip" and defined $opts{'apikey'}
0 0 0 $self->{'config'}{'_'}{'auth'} ne "ip" and defined $opts{'apikey'} and $opts{'apikey'} ne $self->{'config'}{'_'}{'apikey'}
1384 0 0 0 defined $opts{'apikey'} and $self->{'config'}{'_'}{'auth'} ne 'apikey' || $self->{'config'}{'_'}{'auth'} ne 'either'
1467 0 0 0 -f $report and -r $report
0 0 0 -f $report and -r $report and not -f $id_eve
1533 0 0 0 -f $report and -r $report

or 2 conditions

line l !l condition
131 0 0 'DBI'->connect($self->{'config'}{'_'}{'dsn'}, $self->{'config'}{'_'}{'user'}, $self->{'config'}{'_'}{'pass'}) || die($DBI::errstr)

or 3 conditions

line l !l&&r !l&&!r condition
159 0 0 0 defined $opts{'where'} or $self->{'config'}{'_'}{'fail_all'}
333 0 0 0 $column eq 'clock' || $column eq 'added_on'
515 0 0 0 $column eq 'clock' || $column eq 'added_on' || $column eq 'started_on'
584 0 0 0 $opts{'direction'} ne 'desc' || $opts{'direction'} ne 'asc'
757 0 0 0 $column eq 'clock' || $column eq 'added_on' || $column eq 'started_on' || $column eq 'completed_on' || $column eq 'analysis_started_on' || $column eq 'analysis_finished_on' || $column eq 'processing_started_on' || $column eq 'processing_finished_on' || $column eq 'signatures_started_on' || $column eq 'signatures_finished_on' || $column eq 'reporting_started_on' || $column eq 'reporting_finished_on' || $column eq 'latest'
852 0 0 0 $check_file =~ m[^/] or $check_file =~ m[^./]
0 0 0 $check_file =~ m[^/] or $check_file =~ m[^./] or $check_file =~ m[^../]
855 0 0 0 $munge_file =~ m[^/] or $munge_file =~ m[^./]
0 0 0 $munge_file =~ m[^/] or $munge_file =~ m[^./] or $munge_file =~ m[^../]
1366 0 0 0 $self->{'config'}{'_'}{'auth'} ne 'ip' || $self->{'config'}{'_'}{'auth'} ne 'either'
1384 0 0 0 $self->{'config'}{'_'}{'auth'} ne 'apikey' || $self->{'config'}{'_'}{'auth'} ne 'either'