Branch Coverage

blib/lib/InfluxDB/Client.pm
Criterion Covered Total %
branch 0 74 0.0


line true false branch
24 0 0 unless $args{'url'}
27 0 0 if ref $url and ref $url ne 'ARRAY'
30 0 0 ref $url ? :
35 0 0 unless $uri and $uri->has_recognized_scheme and $uri->scheme =~ /^https*$/
40 0 0 unless ref $opts and ref $opts eq 'HASH'
50 0 0 if $args{'username'} and not $args{'password'}
52 0 0 if $args{'password'} and not $args{'username'}
75 0 0 if ($response->http_code != 204)
84 0 0 if (@_ == 2)
93 0 0 unless $args{'query'}
95 0 0 if ref $args{'query'}
99 0 0 if ($args{'method'})
101 0 0 unless $args{'method'} =~ /^(GET|POST)$/
107 0 0 if ($args{'epoch'})
109 0 0 unless $args{'epoch'} =~ /^(s|u|ms|s|m|h)$/
116 0 0 if $args{'db'}
117 0 0 if ($method eq 'POST') { }
134 0 0 unless $args{'database'}
136 0 0 if ref $args{'database'}
140 0 0 unless $args{'data'}
142 0 0 unless ref $args{'data'} and ref $args{'data'} eq 'ARRAY'
145 0 0 if ($args{'precision'}) { }
147 0 0 if (ref $args{'data'}[0] and ref $args{'data'}[0] eq 'InfluxDB::Client::DataSet') { }
154 0 0 unless $args{'precision'} =~ /^(s|u|ms|s|m|h)$/
158 0 0 if ($args{'consistency'}) { }
160 0 0 if ref $args{'consistency'}
163 0 0 unless $args{'consistency'} =~ /^(any|one|quorum|all)$/
175 0 0 if $args{'rp'}
180 0 0 if (ref $ds) { }
181 0 0 unless ref $ds eq 'InfluxDB::Client::DataSet'
196 0 0 if ($response->status == 1)
208 0 0 if $qs
215 0 0 if $idx >= $self->{'_num_uri'}
219 0 0 if ($method eq 'POST') { }
230 0 0 if ($self->{'username'})
241 0 0 if ($resp->code == 408 or $resp->code >= 500 and $resp->code < 600)
247 0 0 if $self->{'_cur_uri'} == $self->{'_num_uri'}