Branch Coverage

blib/lib/Catmandu/Importer.pm
Criterion Covered Total %
branch 32 38 84.2


line true false branch
78 0 65 unless $self->has_file
80 6 59 if (is_string($file) and $self->has_variables)
83 3 3 if (is_value($vars))
86 4 2 if (is_array_ref($vars))
94 1 34 if (is_string($file) and not $file =~ m[^https?://] and not -r $file)
106 13 48 if (is_string($file) and $file =~ m[^https?://])
108 3 10 if ($self->has_http_body)
111 0 3 if (ref $body)
115 3 0 if ($self->has_variables)
117 1 2 if (is_hash_ref($vars)) { }
124 2 0 if (is_value($vars))
156 2 11 if ($self->has_http_timing) { }
2 9 elsif ($self->has_http_retry) { }
171 0 2 if $self->has_http_agent
172 0 2 if $self->has_http_max_redirect
186 3 10 if defined $body
190 4 9 if ($res->code =~ /^408|500|502|503|504$/ and $timing_tries)
195 2 4 unless $res->code =~ /^408|500|502|503|504$/
201 5 8 unless ($res->is_success)