Branch Coverage

lib/JIRA/REST/Class/Mixins.pm
Criterion Covered Total %
branch 50 94 53.1


line true false branch
24 39 36 ref $self ? :
26 39 36 if (&blessed($self))
29 4 35 if $self->{'jira'}
31 0 0 if (not $args and $self->{'args'})
37 35 0 if ($args)
83 67 78 ref $self ? :
85 67 78 if (&blessed($self))
88 32 35 if ($self->{'factory'})
94 35 0 if ($args)
130 33 43 ref $self ? :
132 33 43 if (&blessed($self))
137 33 0 if $self->{'jira_rest'}
141 0 0 if $args
147 0 43 if (_JIRA_REST_version_has_named_parameters())
160 1 39 if $args->{'ssl_verify_none'}
162 0 40 unless ($args->{'username'} and $args->{'password'})
163 0 0 if (my $auth = $rest->{'_headers'}{'Authorization'})
213 1 1 unless &blessed($obj)
220 0 0 $self->obj_isa($user, 'user') ? :
225 0 0 $self->obj_isa($issue, 'issue') ? :
231 0 0 unless defined $link
234 0 0 $dir && $dir =~ /out(?:ward)?/x ? :
238 0 0 if ($self->obj_isa($link, 'linktype'))
266 0 0 if (@args) { }
272 0 0 ref $result ? :
316 70 22 unless (ref $thing)
322 5 17 if (my $class = &blessed($thing))
323 0 5 if ($class eq 'JSON::PP::Boolean')
324 0 0 $thing ? :
326 0 5 if ($class eq 'JSON')
329 0 5 if ($class eq 'REST::Client')
332 0 5 if ($class eq 'DateTime')
335 0 5 if ($top) { }
336 0 0 if (&reftype($thing) eq 'ARRAY')
340 0 0 if (&reftype($thing) eq 'HASH')
351 5 0 if ($thing->can($method))
355 5 0 if defined $value
365 0 0 $fallback ? :
369 0 17 if (ref $thing eq 'SCALAR') { }
2 15 elsif (ref $thing eq 'ARRAY') { }
15 0 elsif (ref $thing eq 'HASH') { }
421 41 8 if (@$in == 1 and ref $in->[0] and ref $in->[0] eq 'HASH') { }
430 1 40 if (keys %$in)
431 0 1 keys %$in == 1 ? :
439 6 2 if (@$in <= @args) { }
548 3 0 if exists $args->{$arg} and defined $args->{$arg} and length $args->{$arg}
593 1 1 @args ? :