Branch Coverage

blib/lib/Zabbix/Tiny.pm
Criterion Covered Total %
branch 23 34 67.6


line true false branch
61 0 4 if ($self->verify_hostname == 0)
65 0 4 if ($self->ssl_opts)
87 0 4 unless ($response->{'_rc'} =~ /2\d\d/)
91 0 4 unless my $content = &decode_json($response->{'_content'})
93 1 3 if ($content->{'error'})
109 4 3 if ($method)
113 2 2 if (scalar @args == 1) { }
121 3 4 unless ($self->{'zabbix_method'} eq 'apiinfo.version')
122 0 3 unless $self->auth
124 0 7 unless ($self->zabbix_method)
133 3 4 unless ($self->{'zabbix_method'} eq 'apiinfo.version')
136 0 7 unless $self->{'json_prepared'} = &encode_json(scalar $self->request)
146 1 3 if ($self->post_response->{'_content'} eq '')
159 3 1 if ($method)
163 0 3 if ($self->{'last_response'}{'error'}) { }
165 0 0 if (not $self->{'redo'} and $error eq 'Session terminated, re-login, please.') { }
178 0 3 if $self->redo