Branch Coverage

blib/lib/JIRA/Client/Automated.pm
Criterion Covered Total %
branch 27 76 35.5


line true false branch
190 0 1 unless (defined $url and $url)
194 0 1 unless ($no_user_pwd or defined $user and $user and defined $password and $password)
198 1 0 unless ($url =~ m[/$])
204 1 0 unless ($auth_url =~ m[/rest/api/])
207 0 1 unless ($auth_url =~ m[/$])
213 0 1 unless ($auth_url =~ m[https?://])
247 0 0 if @_
264 0 12 if @_
273 0 0 if $response->decoded_content
277 0 0 if $request->decoded_content
288 6 0 if (defined $self->{'user'} and defined $self->{'password'})
292 0 6 if ($self->trace)
299 0 6 if ($self->trace)
304 6 0 if $response->is_success
360 2 0 if ($p->{'key'} eq $project)
362 1 0 if $i->{'name'} eq $issuetype and exists $i->{'fields'}
377 4 9 if ($cf =~ /^customfield_/)
402 3 13 if ($custom_field_name) { }
406 3 0 if (exists $custom_field_defn->{'allowedValues'}) { }
408 0 3 unless my $custom_field_id = $custom_values{$field_value}{'id'}
426 2 13 if (ref $value eq 'ARRAY') { }
458 5 7 if (not $_ =~ /^customfield_/) { }
471 4 0 if (exists $fields->{$cfname}) { }
474 1 3 if (ref $value eq 'ARRAY') { }
533 0 3 unless $fields
561 0 0 unless $parent_key
611 0 0 if $field_update_hash
612 0 0 if $update_verb_hash
693 0 0 ref $t_name ? :
697 0 0 unless (defined $tran)
705 0 0 unless wantarray
839 0 0 if $resolve
985 0 0 if ($response->code == 400)
1021 0 0 if ($results->{'errors'})
1099 0 0 unless $url =~ m[/$]
1153 0 0 if ($response->code != 201)
1202 0 0 if ($response->code != 204)
1277 0 0 if ($response->code != 201)