Condition Coverage

blib/lib/TestRail/API.pm
Criterion Covered Total %
condition 155 233 66.5


and 2 conditions

line l !l condition
251 0 78 ref $self->{'user_cache'} eq "ARRAY" and scalar @{$self->{'user_cache'};}
1200 84 7 defined $status_ids and scalar @$status_ids
1210 81 6 defined $assignedto_ids and scalar @$assignedto_ids

and 3 conditions

line !l l&&!r l&&r condition
228 0 0 9 $response->code == 200 and not $response->content
572 3 0 0 defined $extras and &reftype($extras) eq "HASH"
584 3 0 0 defined $opts and &reftype($opts) eq "HASH"
907 2 0 2429 defined $plan->{'entries'} and (&reftype($plan->{'entries'}) || 'undef') eq "ARRAY"
913 0 0 2458 defined $entry->{'runs'} and (&reftype($entry->{'runs'}) || 'undef') eq "ARRAY"
941 1 38 0 defined $configurations and scalar @pconfigs != scalar @$configurations
1263 15 0 0 ref $candidates[0]{'configs'} ne "ARRAY" and not scalar @{$candidates[0]{'configs'};}
1337 10 0 44 defined $opts and &reftype($opts) eq "HASH"
1353 47 0 7 defined $custom_fields and &reftype($custom_fields) eq "HASH"

or 2 conditions

line l !l condition
48 105 0 $debug //= 0
61 0 105 $encoding || 'UTF-8'
57 48 $max_tries // 1
106 0 1 &reftype($res) || 'undef'
153 665 1061 $method //= "GET"
254 60 10 &reftype($res) || 'undef'
318 1 2 $desc //= "res ipsa loquiter"
319 0 3 $announce //= 0
344 100 6 &reftype($result) || 'undef'
346 100 0 &reftype($projects) || 'undef'
364 120 0 &reftype($projects) || 'undef'
368 118 2 &reftype($projects) || 'undef'
385 5 2 &reftype($projects) || 'undef'
397 1 2 $details //= "res ipsa loquiter"
428 9 2 &reftype($suites) || 'undef'
475 11 6 &reftype($response) || 'undef'
477 11 0 &reftype($sections) || 'undef'
496 2 2 &reftype($sections) || 'undef'
508 10 1 &reftype($sections_orig) || 'undef'
534 3 4 &reftype($types) || 'undef'
545 10 2 &reftype($types) || 'undef'
618 15 7 &reftype($response) || 'undef'
620 15 0 &reftype($cases) || 'undef'
630 1 3 &reftype($cases) || 'undef'
669 1 1 &reftype($priorities) || 'undef'
681 1 0 &reftype($priorities) || 'undef'
735 107 4 &reftype($initial_runs) || 'undef'
746 22 0 &reftype($initial_runs) || 'undef'
772 129 5 &reftype($response) || 'undef'
774 129 0 &reftype($runs) || 'undef'
783 56 2 &reftype($runs) || 'undef'
861 1 0 &reftype($initial_results) || 'undef'
872 0 0 &reftype($initial_results) || 'undef'
907 2429 0 &reftype($plan->{'entries'}) || 'undef'
913 2458 0 &reftype($entry->{'runs'}) || 'undef'
997 100 4 &reftype($initial_plans) || 'undef'
1008 19 0 &reftype($initial_plans) || 'undef'
1034 119 5 &reftype($response) || 'undef'
1036 119 0 &reftype($plans) || 'undef'
1045 47 2 &reftype($plans) || 'undef'
1164 2 4 &reftype($response) || 'undef'
1166 2 0 &reftype($milestones) || 'undef'
1176 1 2 &reftype($milestones) || 'undef'
1205 87 4 &reftype($response) || 'undef'
1207 87 0 &reftype($results) || 'undef'
1215 69 18 $self->{'tests_cache'} //= {}
1225 2 47 $self->{'tests_cache'} //= {}
1229 47 2 &reftype($tests) || 'undef'
1394 9 2 &reftype($response) || 'undef'
1396 9 0 &reftype($results) || 'undef'
1465 190 3 &reftype($cgroups) || 'undef'
1535 23 381 $filters //= {}

or 3 conditions

line l !l&&r !l&&!r condition
254 0 10 60 not $res or (&reftype($res) || 'undef') ne "ARRAY"
344 0 6 100 not $result or (&reftype($result) || 'undef') ne "HASH"
346 0 0 100 not $projects or (&reftype($projects) || 'undef') ne "ARRAY"
364 0 0 120 not $projects or (&reftype($projects) || 'undef') ne "ARRAY"
368 0 2 118 not $projects or (&reftype($projects) || 'undef') ne "ARRAY"
385 0 2 5 not $projects or (&reftype($projects) || 'undef') ne "ARRAY"
428 0 2 9 not $suites or (&reftype($suites) || 'undef') ne "ARRAY"
475 0 6 11 not $response or (&reftype($response) || 'undef') ne "HASH"
477 0 0 11 not $sections or (&reftype($sections) || 'undef') ne "ARRAY"
496 0 2 2 not $sections or (&reftype($sections) || 'undef') ne "ARRAY"
508 0 1 10 not $sections_orig or (&reftype($sections_orig) || 'undef') ne "ARRAY"
534 0 4 3 not $types or (&reftype($types) || 'undef') ne "ARRAY"
545 0 2 10 not $types or (&reftype($types) || 'undef') ne "ARRAY"
618 0 7 15 not $response or (&reftype($response) || 'undef') ne "HASH"
620 0 0 15 not $cases or (&reftype($cases) || 'undef') ne "ARRAY"
630 0 3 1 not $cases or (&reftype($cases) || 'undef') ne "ARRAY"
669 0 1 1 not $priorities or (&reftype($priorities) || 'undef') ne "ARRAY"
681 0 0 1 not $priorities or (&reftype($priorities) || 'undef') ne "ARRAY"
772 0 5 129 not $response or (&reftype($response) || 'undef') ne "HASH"
774 0 0 129 not $runs or (&reftype($runs) || 'undef') ne "ARRAY"
783 0 2 56 not $runs or (&reftype($runs) || 'undef') ne "ARRAY"
1034 0 5 119 not $response or (&reftype($response) || 'undef') ne "HASH"
1036 0 0 119 not $plans or (&reftype($plans) || 'undef') ne "ARRAY"
1045 0 2 47 not $plans or (&reftype($plans) || 'undef') ne "ARRAY"
1164 0 4 2 not $response or (&reftype($response) || 'undef') ne "HASH"
1166 0 0 2 not $milestones or (&reftype($milestones) || 'undef') ne "ARRAY"
1176 0 2 1 not $milestones or (&reftype($milestones) || 'undef') ne "ARRAY"
1205 0 4 87 not $response or (&reftype($response) || 'undef') ne "HASH"
1207 0 0 87 not $results or (&reftype($results) || 'undef') ne "ARRAY"
1229 0 2 47 not $tests or (&reftype($tests) || 'undef') ne "ARRAY"
1394 0 2 9 not $response or (&reftype($response) || 'undef') ne "HASH"
1396 0 0 9 not $results or (&reftype($results) || 'undef') ne "ARRAY"