Condition Coverage

blib/lib/Sagan/Monitoring.pm
Criterion Covered Total %
condition 0 36 0.0


and 3 conditions

line !l l&&!r l&&r condition
116 0 0 0 $args{'mode'} ne "librenms" and $args{'mode'} ne "nagios"
0 0 0 defined $args{'mode'} and ($args{'mode'} ne "librenms" and $args{'mode'} ne "nagios")
129 0 0 0 defined $args{'files'} && defined keys %{$args{'files'};}
201 0 0 0 $process_it and defined $line
209 0 0 0 not defined $current_till and defined $timestamp
0 0 0 not defined $current_till and defined $timestamp and $timestamp =~ /^[0-9]+\-[0-9]+\-[0-9]+T[0-9]+\:[0-9]+\:[0-9\.]+[\-\+][0-9]+/
244 0 0 0 defined $json->{'event_type'} and $json->{'event_type'} eq "stats"
289 0 0 0 $new_stats->{'drop_percent'} >= $self->{'drop_percent_warn'} and $new_stats->{'drop_percent'} < $self->{'drop_percent_crit'}
309 0 0 0 $new_stats->{'f_drop_percent'} >= $self->{'drop_percent_warn'} and $new_stats->{'f_drop_percent'} < $self->{'drop_percent_crit'}
331 0 0 0 $total_key ne "alertString" and $total_key ne "alert"
372 0 0 0 $to_return->{'data'}{'.total'}{'drop_percent'} >= $self->{'drop_percent_warn'} and $to_return->{'data'}{'.total'}{'drop_percent'} < $self->{'drop_percent_crit'}
390 0 0 0 $to_return->{'data'}{'.total'}{'f_drop_percent'} >= $self->{'drop_percent_warn'} and $to_return->{'data'}{'.total'}{'f_drop_percent'} < $self->{'drop_percent_crit'}