Branch Coverage

blib/lib/GitLab/API/v4/RESTClient.pm
Criterion Covered Total %
branch 17 36 47.2


line true false branch
143 0 11 unless $options
146 0 11 unless $options->{'headers'}
154 2 9 if @$path_vars
160 0 11 if defined $query
166 0 3 if ($verb eq 'POST' and ref $content eq 'HASH' and $content->{'file'})
170 0 0 unless (-f $file and -r $file)
193 0 0 unless %$content
196 4 7 if (ref $content)
202 4 7 if defined $content
210 0 11 if ($res->{'status'} =~ /^5/) { }
212 0 0 if $tries_left > 0
221 0 11 if ($res->{'status'} eq '404' and $verb eq 'GET')
227 0 0 if ($res->{'status'} eq '403' and $verb eq 'GET' and $raw_path eq 'projects/:project_id/releases/:tag_name')
231 11 0 if ($res->{'success'})
232 5 6 if $res->{'status'} eq '204'
235 6 0 unless defined $decode
236 0 6 unless $decode
251 0 0 if (length $glimpse > 50)