| lib/Nagios/Cmd.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 13 | 26 | 50.0 |
| line | true | false | branch |
|---|---|---|---|
| 74 | 0 | 1061 | unless sysopen $fh, $$self, 1 |
| 79 | 200 | 861 | if -f $$self |
| 87 | 0 | 21 | unless -e $cmdfile |
| 88 | 0 | 21 | unless -p $cmdfile |
| 116 | 0 | 819 | if $debug |
| 119 | 0 | 819 | unless exists $commands{$method} |
| 128 | 0 | 819 | if $debug |
| 140 | 935 | 126 | if (defined $commands{$method}) |
| 146 | 0 | 935 | if (@input > @parts and @input % 2 == 0) |
| 152 | 0 | 935 | if (ref $input[0] eq 'HASH') { } |
| 155 | 0 | 0 | if (not exists $$args{$parts[$i]}) { } |
| 174 | 0 | 2228 | if (ref $_ =~ /^Nagios::/ and $_->can('name')) |
| 186 | 0 | 0 | if (not $func) { } |