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)
192 0 0 unless %$content
195 4 7 if (ref $content)
201 4 7 if defined $content
209 0 11 if ($res->{'status'} =~ /^5/) { }
211 0 0 if $tries_left > 0
220 0 11 if ($res->{'status'} eq '404' and $verb eq 'GET')
226 0 0 if ($res->{'status'} eq '403' and $verb eq 'GET' and $raw_path eq 'projects/:project_id/releases/:tag_name')
230 11 0 if ($res->{'success'})
231 5 6 if $res->{'status'} eq '204'
234 6 0 unless defined $decode
235 0 6 unless $decode
250 0 0 if (length $glimpse > 50)