blib/lib/Monitoring/Icinga2/Client/Simple.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 21 | 34 | 82.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
42 | 3 | 1 | 1 | $args{'service'} and not $args{'services'} |
147 | 0 | 0 | 1 | ref $r eq 'ARRAY' and defined $r->[0] |
0 | 0 | 1 | ref $r eq 'ARRAY' and defined $r->[0] and defined $r->[0]{'status'}{'icingaapplication'}{'app'} | |
221 | 1 | 0 | 1 | $expand and @$names |
238 | 3 | 1 | 22 | defined $getargs and ref $getargs |
line | l | !l | condition |
---|---|---|---|
216 | 2 | 0 | $self->query_host(%args) // {} |
218 | 2 | 0 | $results->{'attrs'}{'vars'}{'parents'} // [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
19 | 32 | 1 | 0 | delete $args{'server'} // croak(q[`server' arg is required]) |
32 | 0 | 32 | 0 | getlogin || getpwuid $< |
40 | 4 | 1 | 0 | $args{'author'} //= $self->{'_mics_author'} |
120 | 2 | 1 | 0 | $args{'author'} // $self->{'_mics_author'} |
228 | 1 | 1 | 0 | $args{'service'} // $args{'services'} |