Branch Coverage

lib/JIRA/REST/Class/Mixins.pm
Criterion Covered Total %
branch 47 90 52.2


line true false branch
24 41 37 ref $self ? :
26 41 37 if (&blessed($self))
29 5 36 if $self->{'jira'}
31 0 0 if (not $args and $self->{'args'})
37 36 0 if ($args)
83 70 80 ref $self ? :
85 70 80 if (&blessed($self))
88 34 36 if ($self->{'factory'})
94 36 0 if ($args)
130 36 44 ref $self ? :
132 36 44 if (&blessed($self))
137 36 0 if $self->{'jira_rest'}
141 0 0 if $args
147 44 0 if (_JIRA_REST_version_has_named_parameters())
160 0 0 if $args->{'ssl_verify_none'}
205 1 1 unless &blessed($obj)
212 0 0 $self->obj_isa($user, 'user') ? :
217 0 0 $self->obj_isa($issue, 'issue') ? :
223 0 0 unless defined $link
226 0 0 $dir && $dir =~ /out(?:ward)?/x ? :
230 0 0 if ($self->obj_isa($link, 'linktype'))
258 0 0 if (@args) { }
264 0 0 ref $result ? :
308 70 22 unless (ref $thing)
314 5 17 if (my $class = &blessed($thing))
315 0 5 if ($class eq 'JSON::PP::Boolean')
316 0 0 $thing ? :
318 0 5 if ($class eq 'JSON')
321 0 5 if ($class eq 'REST::Client')
324 0 5 if ($class eq 'DateTime')
327 0 5 if ($top) { }
328 0 0 if (&reftype($thing) eq 'ARRAY')
332 0 0 if (&reftype($thing) eq 'HASH')
343 5 0 if ($thing->can($method))
347 5 0 if defined $value
357 0 0 $fallback ? :
361 0 17 if (ref $thing eq 'SCALAR') { }
2 15 elsif (ref $thing eq 'ARRAY') { }
15 0 elsif (ref $thing eq 'HASH') { }
413 42 8 if (@$in == 1 and ref $in->[0] and ref $in->[0] eq 'HASH') { }
422 1 41 if (keys %$in)
423 0 1 keys %$in == 1 ? :
431 6 2 if (@$in <= @args) { }
540 3 0 if exists $args->{$arg} and defined $args->{$arg} and length $args->{$arg}
585 1 1 @args ? :