Branch Coverage

blib/lib/Net/Etcd/Role/Actions.pm
Criterion Covered Total %
branch 0 50 0.0


line true false branch
46 0 0 unless ($key =~ /(?:etcd|cb|cv|hold|json_args|endpoint)$/)
79 0 0 unless $init
97 0 0 unless ($self->endpoint =~ /authenticate/)
98 0 0 if $token
112 0 0 if $ca_file
113 0 0 if $key_file
114 0 0 if $cert_file
115 0 0 if $cacert
117 0 0 if ($ca_file or $key_file or $cert_file)
157 0 0 if ($self->{'retry_auth'} > 1)
165 0 0 $self->cv ? :
183 0 0 unless $json
185 0 0 if $cb
192 0 0 unless $line
195 0 0 unless $line =~ /^([0-9a-fA-F]+)/
206 0 0 if length $_[1]
211 0 0 if $cb
219 0 0 if (($hdr->{'transfer-encoding'} || '') =~ /\bchunked\b/i) { }
235 0 0 if (defined $self->{'retry_auth'} and $self->{'retry_auth'})
237 0 0 if ($auth->{'response'}{'success'})
258 0 0 unless $value
299 0 0 if (defined $response->{'success'})
315 0 0 if $content
327 0 0 $status == 200 ? :
329 0 0 if $status == 401