Branch Coverage

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


line true false branch
60 0 0 unless (defined $opts{'base_dir'})
64 0 0 if (not defined $opts{'obj'}) { }
0 0 elsif (ref $opts{'obj'} ne 'OSLV::Monitor') { }
131 0 0 if (-f $self->{'proc_cache'}) { }
136 0 0 if ($@)
183 0 0 if ($@)
187 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")
195 0 0 if (defined $jls_jail->{'name'} and defined $jls_jail->{'jid'})
206 0 0 if ($? eq 0)
210 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) { }
233 0 0 if ($ip_key eq 'ip4.addr') { }
239 0 0 if (defined $jls_jail->{$ip_key} and ref $jls_jail->{$ip_key} eq "ARRAY" and defined $jls_jail->{$ip_key}[0])
244 0 0 if (ref $ip eq "" and not defined $found_IPv4{$ip} and not defined $found_IPv6{$ip})
245 0 0 if ($ip =~ /^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$/ or $ip =~ /^[\:0-9a-fA-F]+$/)
258 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}) { }
269 0 0 if ($ip_key eq "ip4.addr")
275 0 0 if ($? eq 0)
278 0 0 if ($line =~ /gateway\:[\ \t]/) { }
0 0 elsif ($line =~ /interface:[\ \t]/) { }
351 0 0 unless ($@)
353 0 0 if ($proc->{'elapsed-times'} ne "-")
360 0 0 if ($times->{$stat})
365 0 0 if ($time =~ /-/)
372 0 0 if (defined $time_split[2]) { }
382 0 0 if (&looks_like_number($stat_value)) { }
383 0 0 if ($counters->{$stat}) { }
384 0 0 if (defined $proc_cache->{$cache_name} and defined $proc_cache->{$cache_name}{$stat}) { }
415 0 0 if ($@)
419 0 0 if ($cache_is_new)
424 0 0 if (ref $data->{'totals'}{$total_key} eq "")
448 0 0 unless ($^O =~ /freebsd/)
454 0 0 if ($? != 0)
465 0 0 if (not defined $ip or ref $ip ne "")
471 0 0 unless (defined $if)