Branch Coverage

blib/lib/OSLV/Monitor/Backends/FreeBSD.pm
Criterion Covered Total %
branch 0 114 0.0


line true false branch
61 0 0 unless (defined $opts{'base_dir'})
65 0 0 if (not defined $opts{'obj'}) { }
0 0 elsif (ref $opts{'obj'} ne 'OSLV::Monitor') { }
132 0 0 if (-f $self->{'proc_cache'}) { }
133 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
144 0 0 if ($@)
145 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
162 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
197 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
203 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
211 0 0 if ($@)
215 0 0 if (defined $jls and ref $jls eq "HASH" and defined $jls->{'jail-information'} and ref $jls->{'jail-information'} eq "HASH" and defined $jls->{'jail-information'}{'jail'} and ref $jls->{'jail-information'}{'jail'} eq "ARRAY")
223 0 0 if (defined $jls_jail->{'name'} and defined $jls_jail->{'jid'})
224 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
237 0 0 if ($include_jail)
238 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
244 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
249 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
259 0 0 if ($? eq 0) { }
0 0 elsif ($ENV{'OSLV_MONITOR_DEBUG'}) { }
260 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
268 0 0 if ($line =~ /^[a-zA-Z].*\:[\ \t]+flags\=/) { }
0 0 elsif ($line =~ /^[\ \t]+inet6 / and defined $interface) { }
0 0 elsif ($line =~ /^[\ \t]+inet / and defined $interface) { }
294 0 0 if ($ip_key eq 'ip4.addr') { }
300 0 0 if (defined $jls_jail->{$ip_key} and ref $jls_jail->{$ip_key} eq "ARRAY" and defined $jls_jail->{$ip_key}[0])
305 0 0 if (ref $ip eq "" and not defined $found_IPv4{$ip} and not defined $found_IPv6{$ip})
306 0 0 if ($ip =~ /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/ or $ip =~ /^[\:0-9a-fA-F]+$/)
319 0 0 if ($ip_key eq 'ip4.addr' and defined $found_IPv4{$ip}) { }
0 0 elsif ($ip_key eq 'ip6.addr' and defined $found_IPv6{$ip}) { }
330 0 0 if ($ip_key eq "ip4.addr")
335 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
344 0 0 if ($? eq 0) { }
0 0 elsif ($ENV{'OSLV_MONITOR_DEBUG'}) { }
347 0 0 if ($line =~ /gateway\:[\ \t]/) { }
0 0 elsif ($line =~ /interface:[\ \t]/) { }
419 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
430 0 0 unless ($@)
431 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
439 0 0 if ($proc->{'elapsed-times'} ne "-")
446 0 0 if ($times->{$stat})
451 0 0 if ($time =~ /-/)
458 0 0 if (defined $time_split[2]) { }
468 0 0 if (&looks_like_number($stat_value)) { }
469 0 0 if ($counters->{$stat}) { }
470 0 0 if (defined $proc_cache->{$cache_name} and defined $proc_cache->{$cache_name}{$stat}) { }
500 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
508 0 0 if ($@)
509 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
519 0 0 if ($cache_is_new)
520 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
529 0 0 if (ref $data->{'totals'}{$total_key} eq "")
535 0 0 if ($ENV{'OSLV_MONITOR_DEBUG'})
557 0 0 unless ($^O =~ /freebsd/)
563 0 0 if ($? != 0)
574 0 0 if (not defined $ip or ref $ip ne "")
580 0 0 unless (defined $if)