Branch Coverage

blib/lib/TestRail/Utils.pm
Criterion Covered Total %
branch 35 60 58.3


line true false branch
32 0 0 unless $echo_ok
36 0 0 if $input
38 0 0 unless $echo_ok
46 0 188 unless ($options->{$key})
49 0 0 unless $options->{$key}
60 0 2 unless open my $fh, "<", $homedir . "/.testrailrc"
65 4 30 if (scalar @$arr != 2)
72 1 1 if $login_only
84 2 390 if $is_skipall
87 27 363 unless scalar @process_split
90 119 244 if $dotty =~ /\d/
102 40 0 if $dotty =~ /^\.+$/ and not $line =~ /^ok|not ok/ and not $line =~ /^# / and $line
114 9 0 if ($file) { }
119 17 180 if (getFilenameFromTapLine($_))
120 8 9 if $fcontents
126 9 0 if $fcontents
130 0 0 if IO::Interactive::Tiny::is_interactive()
135 0 0 if (getFilenameFromTapLine($_))
136 0 0 if $fcontents
141 0 0 if $fcontents
148 0 46 unless &blessed($tr) eq "TestRail::API"
152 1 45 unless $project
156 24 21 if ($opts->{'plan'}) { }
158 1 23 unless $plan
166 3 41 unless $run
172 20 21 $plan ? :
173 20 21 if ($mid)
175 0 20 unless $milestone
185 37 0 if $opts->{'browser'}
191 37 0 if ($opts->{'browser'})