Branch Coverage

blib/lib/Tapper/Reports/Web/Controller/Tapper/Testruns.pm
Criterion Covered Total %
branch 46 128 35.9


line true false branch
35 0 0 if ($filter_condition->{'error'})
63 0 1 unless $testrun
69 0 2 if ($precondition->{'precondition_type'} eq 'virt') { }
0 2 elsif ($precondition->{'precondition_type'} eq 'image') { }
0 2 elsif ($precondition->{'precondition_type'} eq 'prc') { }
88 0 0 if ($retval->{'arch'}) { }
91 0 0 if ($precondition->{'image'} =~ /(64b)|(x86_64)/u) { }
0 0 elsif ($precondition->{'image'} =~ /(32b)|(i386)/u) { }
100 0 0 if ($precondition->{'config'}{'testprogram_list'}) { }
0 0 elsif ($precondition->{'config'}{'test_program'}) { }
118 0 2 if (not $c->stash->{'testrun'})
130 0 0 unless $force
134 0 0 if ($retval)
147 0 0 unless ($retval)
160 0 0 unless ($retval)
173 0 0 unless ($retval)
186 0 0 if ($retval)
208 0 0 unless $c->stash->{'preconditions'}
0 0 if (@{[] unless $c->stash->{'preconditions'};}) { }
238 1 1 if ($form->submitted_and_valid) { }
243 0 1 if ($error) { }
250 0 1 if ($@)
257 0 1 if ($retval) { }
295 1 4 if ($form->submitted_and_valid) { }
315 0 24 unless open my $fh, '<', $file
319 24 28 if $desc
349 0 3 if ($owner->login eq 'tapper') { }
369 0 8 if ($host->queuehosts->count)
372 0 0 unless grep {$_->queue->name eq $new_testrun_queue;} $host->queuehosts->all
390 0 2 unless open my $fh, '<', $file
394 10 204 if $line =~ /^### ?(.*)$/u
396 214 0 unless $required
397 2 212 unless $optional
398 4 210 unless $mpc_config
404 0 0 unless $type
414 2 2 unless $type
421 2 0 if ($mpc_config)
423 2 0 unless substr($mpc_config, 0, 1) eq '/'
430 2 0 unless $mpc_config =~ m[^/]ou
432 0 2 unless (-r $mpc_config)
452 2 2 unless defined $all_form_elements{$name}
454 0 2 if (lc $element->{'type'} eq 'file')
472 2 0 if (defined $all_form_elements{$name}) { }
482 2 0 if $name eq 'submit'
485 0 0 if (ref $all_form_elements{$name} =~ /ARRAY/u) { }
494 0 2 unless open my $fh, '<', $config->{'file'}
500 0 2 unless $tt->process(\$mpc, \%macros, \$ttapplied)
505 0 2 if $@
519 0 2 unless $file
537 2 0 if ($config->{'mpc_config'})
545 1 1 if ($form->submitted_and_valid)
548 0 1 if (defined $testrun_data->{'requested_hosts'}) { }
549 0 0 if (ref $testrun_data->{'requested_hosts'} eq 'ARRAY') { }
573 0 2 if ($@)
581 2 0 if (ref $preconditions eq 'ARRAY') { }
608 0 0 if ($hr_params->{'testrun_date'}) { }
0 0 elsif (not $hr_filter_condition->{'testrun_id'}) { }
616 0 0 if ($hr_params->{'pager_sign'} and $hr_params->{'pager_value'})
617 0 0 if ($hr_params->{'pager_sign'} eq 'negative') { }
0 0 elsif ($hr_params->{'pager_sign'} eq 'positive') { }
629 0 0 if ($hr_filter_condition->{'testrun_date'}) { }
638 0 0 if ($d_testrun_date_from ne $d_testrun_date_to) { }
689 0 0 if $i == $j
703 0 0 $c->stash->{'view_pager'} ? :