blib/lib/Zabbix/ServerScript/API.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 13 | 16 | 81.2 |
line | true | false | branch |
---|---|---|---|
16 | 0 | 1 | unless eval { do { require Zabbix::ServerScript::Config; 1 } } |
45 | 8 | 0 | defined $ENV{'LOG_CATEGORY'} ? : |
49 | 1 | 7 | unless defined($api_config = $Zabbix::ServerScript::Config->{'api'}) |
50 | 1 | 6 | unless defined $api_config->{'url'} |
51 | 3 | 3 | unless defined $api_config->{$api}{'login'} and defined $api_config->{$api}{'password'} |
66 | 0 | 3 | unless defined $params |
81 | 1 | 2 | if $res->is_error |
85 | 1 | 1 | if (defined $response_hashref->{'error'}) |