| blib/lib/Monitoring/Generator/TestConfig.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 23 | 50 | 46.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 144 | 5 | 0 | 8 | not defined $self->{$opt_key} and ref $options{$opt_key} eq '' |
| 5 | 0 | 8 | not defined $self->{$opt_key} and ref $options{$opt_key} eq '' and defined $options{$opt_key} | |
| 170 | 3 | 1 | 1 | $self->{'layout'} ne 'nagios' and $self->{'layout'} ne 'icinga' |
| 4 | 1 | 0 | $self->{'layout'} ne 'nagios' and $self->{'layout'} ne 'icinga' and $self->{'layout'} ne 'shinken' | |
| 2 | 0 | 0 | $self->{'layout'} ne 'nagios' and $self->{'layout'} ne 'icinga' and $self->{'layout'} ne 'shinken' and $self->{'layout'} ne 'omd' | |
| 194 | 0 | 5 | 0 | -e $self->{'output_dir'} and not $self->{'overwrite_dir'} |
| 376 | 0 | 0 | 1 | $^O ne 'MSWin32' and $< == 0 |
| line | l | !l | condition |
|---|---|---|---|
| 224 | 0 | 3 | can_run('nagios3') || can_run('nagios') || undef |
| 227 | 0 | 1 | can_run('icinga') || undef |
| 230 | 0 | 1 | can_run('shinken-arbiter') || '/usr/local/shinken/bin/shinken-arbiter' |
| 1022 | 0 | 1 | shift() || '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 329 | 1 | 0 | 0 | $self->{'layout'} eq 'nagios' or $self->{'layout'} eq 'icinga' |
| 426 | 0 | 1 | 0 | $self->{'fixed_length'} || length $self->{'routercount'} |
| 483 | 0 | 1 | 0 | $self->{'fixed_length'} || length $self->{'hostcount'} |
| 589 | 0 | 1 | 0 | $self->{'fixed_length'} || length $self->{'hostcount'} |
| 590 | 0 | 1 | 0 | $self->{'fixed_length'} || length $self->{'services_per_host'} |
| 709 | 0 | 1 | 0 | $self->{'fixed_length'} || length $self->{'contacts_count'} |
| 729 | 0 | 1 | 0 | $self->{'fixed_length'} || length $self->{'contactgroups_count'} |