Branch Coverage

blib/lib/JIRA/Client/Automated.pm
Criterion Covered Total %
branch 30 84 35.7


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)
274 0 0 if ($response->content_type eq 'application/json') { }
282 0 0 if ($request->decoded_content)
283 0 0 if ($request->content_type eq 'application/json') { }
298 6 0 if (defined $self->{'user'} and defined $self->{'password'})
302 0 6 if ($self->trace)
309 0 6 if ($self->trace)
314 6 0 if $response->is_success
370 2 0 if ($p->{'key'} eq $project)
372 1 0 if $i->{'name'} eq $issuetype and exists $i->{'fields'}
387 4 9 if ($cf =~ /^customfield_/)
412 3 13 if ($custom_field_name) { }
416 3 0 if (exists $custom_field_defn->{'allowedValues'}) { }
418 0 3 unless my $custom_field_id = $custom_values{$field_value}{'id'}
436 2 13 if (ref $value eq 'ARRAY') { }
468 5 7 if (not $_ =~ /^customfield_/) { }
481 4 0 if (exists $fields->{$cfname}) { }
484 1 3 if (ref $value eq 'ARRAY') { }
2 1 elsif (ref $value eq 'HASH') { }
485 3 0 ref $_ eq 'HASH' ? :
545 0 3 unless $fields
573 0 0 unless $parent_key
622 0 0 if $field_update_hash
623 0 0 if $update_verb_hash
704 0 0 ref $t_name ? :
708 0 0 unless (defined $tran)
716 0 0 unless wantarray
850 0 0 if $resolve
996 0 0 if ($response->code == 400)
1032 0 0 if ($results->{'errors'})
1110 0 0 unless $url =~ m[/$]
1164 0 0 if ($response->code != 201)
1213 0 0 if ($response->code != 204)
1288 0 0 if ($response->code != 201)