Branch Coverage

blib/lib/JMX/Jmx4Perl/Nagios/CheckJmx4Perl.pm
Criterion Covered Total %
branch 9 160 5.6


line true false branch
59 0 1 if defined $$self{'np'}->opts->{'doc'}
97 0 0 if ($nr_checks == 1) { }
100 0 0 if @r
102 0 0 if $@
115 0 0 if @r
117 0 0 if ($@)
120 0 0 $np->opts->{'unknown-is-critical'} ? :
129 0 0 if (@extra_requests)
136 0 0 if ($@)
140 0 0 if (not $@ =~ /^ExitTrap:/) { }
162 0 0 if scalar @{$$self{'checks'};} > 1
178 0 0 if ($code eq 0) { }
195 0 0 $$error_stat{'UNKNOWN'} && scalar @$error_stat->{'UNKNOWN'} ? :
218 0 0 if (my $errs = $$error_stat{$code})
223 0 0 if ($total_errors > 0)
245 0 0 if defined $$c{'multicheckprefix'} and not length $$c{'multicheckprefix'}
259 0 0 if ($o->verbose)
261 0 0 if ($self->user)
273 0 0 if ($o->verbose)
289 0 0 ref $r eq 'CODE' ? :
318 0 0 if ($reqs2send)
331 0 0 unless (eval 'require Pod::Usage; Pod::Usage->import(qw(pod2usage)); 1;')
335 0 0 if ($section) { }
343 0 0 if ($real_section) { }
373 0 1 if ($check_configs) { }
382 0 1 if ($o->server)
388 0 1 unless $self->url
391 1 0 $check->name ? :
392 0 0 unless $check->mbean and $check->attribute || $check->operation or $check->alias or $check->value or $check->script
405 0 1 if ($check) { }
406 0 0 unless $config
407 0 0 unless $$config{'check'}
410 0 0 if (not $$config{'check'}{$check}) { }
415 0 0 ref $check_config eq 'ARRAY' ? :
418 0 0 unless @{$check_configs;}
430 0 0 unless ref $$c{$k}
449 0 0 if ($multi_checks)
451 0 0 if ($m_check)
455 0 0 if ($$m_check{$type})
456 0 0 ref $$m_check{$type} eq 'ARRAY' ? :
462 0 0 unless defined $$config{'check'}{$c_name} or defined $$multi_checks{$c_name}
464 0 0 if ($$config{'check'}{$c_name}) { }
487 0 0 if ($multi_checks)
489 0 0 if ($m_check and $$m_check{'summaryok'} || $$m_check{'summaryfailure'})
503 0 0 unless ($args and $check_params)
508 0 0 if ($$check_params[$i] =~ /^\$(\d+)$/)
510 0 0 if ($j <= $#$args)
528 0 0 $$check{'args'} && @{$$check{'args'};} ? :
530 0 0 if ($$check{'use'})
532 0 0 ref $$check{'use'} eq 'ARRAY' ? :
536 0 0 $$check{'key'} ? :
0 0 unless $$config{'check'}{$p_name}
551 0 0 defined $$parent_merged{$k} ? :
552 0 0 if (defined $$check{$k}) { }
571 0 0 if $k =~ /^(key|args)$/
572 0 0 if $args and @$args and not ref $$check{$k}
582 0 0 defined $args ? :
597 0 0 if $@
607 0 0 defined $1 ? :
609 0 0 defined $3 ? :
611 0 0 defined $6 ? :
612 0 0 if $default
614 0 0 if (defined $args) { }
616 0 0 if (defined $repl) { }
617 0 0 if ($repl =~ /^\$(\d+)$/) { }
621 0 0 if (defined $default) { }
635 0 0 if (defined $default) { }
0 0 elsif (length $start or length $end) { }
640 0 0 unless (length $ret)
650 0 0 defined $rest ? :
657 0 0 if ($check_ref =~ /^\s*(.+?)\((.*)\)\s*$/) { }
672 0 1 if $path and not -e $path
899 0 0 if ($$opts{$main_key}) { }
0 0 elsif ($server_config and $$server_config{$main_key}) { }
923 1 0 if ($$SERVER_CONFIG_KEYS{$name}) { }
924 1 0 if $np->opts->{$opts_name}
926 0 0 if ($c) { }
932 0 0 unless $$h{$p}
934 0 0 unless @parts
949 0 0 $np->opts->{'unknown-is-critical'} ? :