Branch Coverage

blib/lib/Net/Fastly/Client.pm
Criterion Covered Total %
branch 4 58 6.9


line true false branch
69 1 0 unless $self->fully_authed
73 0 0 unless ($res->is_success)
74 0 0 if $res->code == 501 and $res->status_line =~ /Protocol scheme 'https' is not supported/
75 0 0 unless $res->is_success
79 0 0 wantarray ? :
91 0 0 unless $self->key_authed
111 0 1 if defined $self->{'user'}
142 0 0 unless $content->{'status'} eq 'success'
153 0 0 if 404 == $res->code
154 0 0 unless $res->is_success
166 0 0 unless $res->is_success
178 0 0 if ($self->{'use_old_purge_method'})
184 0 0 unless $res->is_success
196 0 0 unless $res->is_success
208 0 0 unless $res->is_success
215 0 0 $self->fully_authed ? :
216 0 0 if defined $self->{'explicit_customer'}
220 0 0 if defined $value
230 0 0 $content ? :
242 4 0 if ('HTTP::Request::Common'->can('DELETE')) { }
0 0 elsif (my $_simple_req = 'HTTP::Request::Common'->can('_simple_req')) { }
261 0 1 if ($proxy) { }
327 0 0 if ($base =~ s[^(https?:)//][])
332 0 0 if $port != 80
334 0 0 if keys %params
344 0 0 unless defined $value
345 0 0 unless (ref $value eq 'HASH')
365 0 0 if $DEBUG
367 0 0 if $DEBUG