Condition Coverage

blib/lib/Monitoring/Generator/TestConfig.pm
Criterion Covered Total %
condition 23 50 46.0


and 3 conditions

line !l l&&!r l&&r condition
140 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}
166 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'
190 0 5 0 -e $self->{'output_dir'} and not $self->{'overwrite_dir'}
372 0 0 1 $^O ne 'MSWin32' and $< == 0

or 2 conditions

line l !l condition
220 0 3 can_run('nagios3') || can_run('nagios') || undef
223 0 1 can_run('icinga') || undef
226 0 1 can_run('shinken-arbiter') || '/usr/local/shinken/bin/shinken-arbiter'
1015 0 1 shift() || ''

or 3 conditions

line l !l&&r !l&&!r condition
325 1 0 0 $self->{'layout'} eq 'nagios' or $self->{'layout'} eq 'icinga'
422 0 1 0 $self->{'fixed_length'} || length $self->{'routercount'}
478 0 1 0 $self->{'fixed_length'} || length $self->{'hostcount'}
583 0 1 0 $self->{'fixed_length'} || length $self->{'hostcount'}
584 0 1 0 $self->{'fixed_length'} || length $self->{'services_per_host'}
702 0 1 0 $self->{'fixed_length'} || length $self->{'contactscount'}
722 0 1 0 $self->{'fixed_length'} || length $self->{'contactgroupscount'}