| blib/lib/Monitoring/Generator/TestConfig.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 15 | 44 | 34.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 126 | 3 | 0 | 3 | not defined $self->{$opt_key} and ref $options{$opt_key} eq '' |
| 3 | 0 | 3 | not defined $self->{$opt_key} and ref $options{$opt_key} eq '' and defined $options{$opt_key} | |
| 152 | 3 | 0 | 0 | $self->{'layout'} ne 'nagios' and $self->{'layout'} ne 'icinga' |
| 3 | 0 | 0 | $self->{'layout'} ne 'nagios' and $self->{'layout'} ne 'icinga' and $self->{'layout'} ne 'shinken' | |
| 0 | 0 | 0 | $self->{'layout'} ne 'nagios' and $self->{'layout'} ne 'icinga' and $self->{'layout'} ne 'shinken' and $self->{'layout'} ne 'omd' | |
| 176 | 0 | 3 | 0 | -e $self->{'output_dir'} and not $self->{'overwrite_dir'} |
| 358 | 0 | 0 | 1 | $^O ne 'MSWin32' and $< == 0 |
| line | l | !l | condition |
|---|---|---|---|
| 206 | 0 | 3 | which('nagios3') || which('nagios') || undef |
| 209 | 0 | 0 | which('icinga') || undef |
| 212 | 0 | 0 | which('shinken-arbiter') || '/usr/local/shinken/bin/shinken-arbiter' |
| 946 | 0 | 1 | shift() || '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 311 | 1 | 0 | 0 | $self->{'layout'} eq 'nagios' or $self->{'layout'} eq 'icinga' |
| 410 | 0 | 1 | 0 | $self->{'fixed_length'} || length $self->{'routercount'} |
| 452 | 0 | 1 | 0 | $self->{'fixed_length'} || length $self->{'hostcount'} |
| 545 | 0 | 1 | 0 | $self->{'fixed_length'} || length $self->{'hostcount'} |
| 546 | 0 | 1 | 0 | $self->{'fixed_length'} || length $self->{'services_per_host'} |