Condition Coverage

blib/lib/TestRail/API.pm
Criterion Covered Total %
condition 111 157 70.7


and 2 conditions

line l !l condition
249 0 78 ref $self->{'user_cache'} eq "ARRAY" and scalar @{$self->{'user_cache'};}
1157 83 7 defined $status_ids and scalar @$status_ids
1162 84 6 defined $assignedto_ids and scalar @$assignedto_ids

and 3 conditions

line !l l&&!r l&&r condition
226 0 0 9 $response->code == 200 and not $response->content
563 3 0 0 defined $extras and &reftype($extras) eq "HASH"
575 3 0 0 defined $opts and &reftype($opts) eq "HASH"
882 2 0 2429 defined $plan->{'entries'} and (&reftype($plan->{'entries'}) || 'undef') eq "ARRAY"
888 0 0 2458 defined $entry->{'runs'} and (&reftype($entry->{'runs'}) || 'undef') eq "ARRAY"
915 1 38 0 defined $configurations and scalar @pconfigs != scalar @$configurations
1215 15 0 0 ref $candidates[0]{'configs'} ne "ARRAY" and not scalar @{$candidates[0]{'configs'};}
1288 10 0 44 defined $opts and &reftype($opts) eq "HASH"
1304 47 0 7 defined $custom_fields and &reftype($custom_fields) eq "HASH"

or 2 conditions

line l !l condition
47 105 0 $debug //= 0
60 0 105 $encoding || 'UTF-8'
57 48 $max_tries // 1
105 0 1 &reftype($res) || 'undef'
151 665 1057 $method //= "GET"
252 60 10 &reftype($res) || 'undef'
315 1 2 $desc //= "res ipsa loquiter"
316 0 3 $announce //= 0
343 100 6 &reftype($result) || 'undef'
347 100 0 &reftype($result) || 'undef'
361 120 0 &reftype($projects) || 'undef'
365 118 2 &reftype($projects) || 'undef'
382 5 2 &reftype($projects) || 'undef'
394 1 2 $details //= "res ipsa loquiter"
425 9 2 &reftype($suites) || 'undef'
488 2 2 &reftype($sections) || 'undef'
500 10 1 &reftype($sections_orig) || 'undef'
526 3 4 &reftype($types) || 'undef'
537 10 2 &reftype($types) || 'undef'
617 1 3 &reftype($cases) || 'undef'
656 1 1 &reftype($priorities) || 'undef'
668 1 0 &reftype($priorities) || 'undef'
721 107 4 &reftype($initial_runs) || 'undef'
762 56 2 &reftype($runs) || 'undef'
840 1 0 &reftype($initial_results) || 'undef'
882 2429 0 &reftype($plan->{'entries'}) || 'undef'
888 2458 0 &reftype($entry->{'runs'}) || 'undef'
970 100 4 &reftype($initial_plans) || 'undef'
1011 47 2 &reftype($plans) || 'undef'
1134 1 2 &reftype($milestones) || 'undef'
1167 71 19 $self->{'tests_cache'} //= {}
1177 3 46 $self->{'tests_cache'} //= {}
1181 47 2 &reftype($tests) || 'undef'
1409 190 3 &reftype($cgroups) || 'undef'
1479 23 381 $filters //= {}

or 3 conditions

line l !l&&r !l&&!r condition
252 0 10 60 not $res or (&reftype($res) || 'undef') ne "ARRAY"
343 0 6 100 not $result or (&reftype($result) || 'undef') ne "ARRAY"
347 0 0 100 not $result or (&reftype($result) || 'undef') ne "ARRAY"
361 0 0 120 not $projects or (&reftype($projects) || 'undef') ne "ARRAY"
365 0 2 118 not $projects or (&reftype($projects) || 'undef') ne "ARRAY"
382 0 2 5 not $projects or (&reftype($projects) || 'undef') ne "ARRAY"
425 0 2 9 not $suites or (&reftype($suites) || 'undef') ne "ARRAY"
488 0 2 2 not $sections or (&reftype($sections) || 'undef') ne "ARRAY"
500 0 1 10 not $sections_orig or (&reftype($sections_orig) || 'undef') ne "ARRAY"
526 0 4 3 not $types or (&reftype($types) || 'undef') ne "ARRAY"
537 0 2 10 not $types or (&reftype($types) || 'undef') ne "ARRAY"
617 0 3 1 not $cases or (&reftype($cases) || 'undef') ne "ARRAY"
656 0 1 1 not $priorities or (&reftype($priorities) || 'undef') ne "ARRAY"
668 0 0 1 not $priorities or (&reftype($priorities) || 'undef') ne "ARRAY"
762 0 2 56 not $runs or (&reftype($runs) || 'undef') ne "ARRAY"
1011 0 2 47 not $plans or (&reftype($plans) || 'undef') ne "ARRAY"
1134 0 2 1 not $milestones or (&reftype($milestones) || 'undef') ne "ARRAY"
1181 0 2 47 not $tests or (&reftype($tests) || 'undef') ne "ARRAY"