line |
true |
false |
branch |
25
|
0 |
13 |
unless &blessed($tr) eq "TestRail::API" |
31
|
3 |
10 |
if ($opts->{'statuses'}) |
36
|
0 |
13 |
unless $project |
41
|
3 |
10 |
if $opts->{'configs'} |
45
|
10 |
3 |
unless $opts->{'configs'} |
51
|
0 |
65 |
unless $cruns |
53
|
132 |
11 |
if scalar @$pconfigs != scalar @{$run->{'config_ids'};} |
58
|
3 |
8 |
if grep {$_ == $cid;} @$pconfigs |
63
|
3 |
8 |
if $found == scalar @{$run->{'config_ids'};} |
69
|
3 |
10 |
if ($opts->{'statuses'}) |
81
|
3 |
10 |
if ($opts->{'milesort'}) |
86
|
3 |
12 |
if $run->{'milestone_id'} |
88
|
3 |
12 |
$run->{'milestone'} ? : |
97
|
3 |
10 |
if ($opts->{'lifo'}) { } |
109
|
0 |
27 |
unless &blessed($tr) eq "TestRail::API" |
118
|
4 |
21 |
if $opts->{'statuses'} |
122
|
4 |
21 |
if $opts->{'users'} |
132
|
1 |
21 |
if $opts->{'match'} and $opts->{'no-match'} |
134
|
1 |
20 |
if $opts->{'match'} and $opts->{'orphans'} |
136
|
1 |
4 |
if $opts->{'orphans'} and $opts->{'no-match'} |
141
|
12 |
11 |
if ($opts->{'match'} or $opts->{'no-match'} or $opts->{'orphans'}) |
146
|
24 |
8 |
$opts->{'match'} || $opts->{'orphans'} ? : |
147
|
0 |
32 |
unless -d $dir |
149
|
1 |
31 |
if (ref $opts->{'finder'} eq 'CODE') { } |
153
|
23 |
8 |
if (not $opts->{'no-recurse'}) { } |
156
|
672 |
777 |
if -f $_ and /\Q$ext\E$/ |
170
|
2858 |
59 |
unless index($path, $case->{'title'}) > 0 |
171
|
2 |
57 |
unless basename($path) eq $case->{'title'} |
180
|
4 |
27 |
if $opts->{'orphans'} |
185
|
8 |
23 |
if $opts->{'no-match'} |
189
|
10 |
9 |
if $opts->{'match'} and $opts->{'names-only'} |
191
|
9 |
33 |
if $opts->{'match'} and not $opts->{'names-only'} |
193
|
13 |
10 |
if not $opts->{'match'} and $opts->{'names-only'} |
200
|
0 |
4 |
unless &blessed($tr) eq "TestRail::API" |
204
|
0 |
4 |
unless $project |
208
|
0 |
4 |
unless $suite |
215
|
0 |
4 |
if $opts->{'section'} |
217
|
0 |
4 |
if $opts->{'section'} and not $section |
220
|
0 |
4 |
if ref $section eq "HASH" |
224
|
0 |
4 |
if ref $opts->{'types'} eq "ARRAY" |
241
|
1 |
10 |
unless defined $opts->{'testsuite_id'} |
243
|
1 |
9 |
unless defined $opts->{'directory'} |
245
|
1 |
8 |
unless -d $opts->{'directory'} |
248
|
3 |
5 |
unless ($opts->{'no-missing'}) |
257
|
3 |
5 |
if ($opts->{'orphans'}) |
265
|
3 |
5 |
if ($opts->{'update'}) |
290
|
2 |
37 |
if $opts->{'projects'} and not grep({$_ eq $project->{'name'};} @{$$opts{"projects"};}) |
294
|
0 |
37 |
unless ref $runs eq "ARRAY" |
303
|
3 |
34 |
if ($opts->{'plans'}) |
311
|
25 |
12 |
if ($opts->{'runs'}) |
319
|
6 |
31 |
if ($opts->{'plan_ids'}) |
327
|
6 |
31 |
if ($opts->{'run_ids'}) |
338
|
2319 |
0 |
if $plan_runs |
357
|
0 |
0 |
if ref $runz ne "ARRAY" |
363
|
0 |
0 |
unless $run->{'id'} |
371
|
0 |
0 |
if scalar @{$opts->{'runs'};} and not grep({$_ eq $run->{'name'};} @{$$opts{"runs"};}) |
372
|
0 |
0 |
if ($opts->{'fast'}) |
378
|
0 |
0 |
if $c |
381
|
0 |
0 |
unless scalar @csz |
388
|
0 |
0 |
unless $cres |
394
|
0 |
0 |
if scalar @{$c->{'results'};} |
402
|
0 |
0 |
unless ref $c eq "HASH" |
411
|
0 |
0 |
if scalar @{$c->{'results'};} |
433
|
0 |
0 |
if ($opts->{'pattern'}) |
441
|
0 |
0 |
if (ref $opts->{'defects'} eq "ARRAY" and scalar @{$opts->{'defects'};}) |
455
|
0 |
0 |
if (ref $opts->{'versions'} eq "ARRAY" and scalar @{$opts->{'versions'};}) |