Branch Coverage

blib/lib/Tapper/Reports/Web/Controller/Tapper/Testruns.pm
Criterion Covered Total %
branch 50 136 36.7


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) { }
314 0 24 unless open my $fh, '<', $file
319 24 28 if $desc
323 0 4908 if $hide
327 24 0 unless $hide
353 0 3 if ($owner->login eq 'tapper') { }
373 0 8 if ($host->queuehosts->count)
376 0 0 unless grep {$_->queue->name eq $new_testrun_queue;} $host->queuehosts->all
394 0 2 unless open my $fh, '<', $file
398 10 204 if $line =~ /^### ?(.*)$/u
400 214 0 unless $required
401 2 212 unless $optional
402 4 210 unless $mpc_config
408 0 0 unless $type
418 2 2 unless $type
425 2 0 if ($mpc_config)
427 2 0 unless substr($mpc_config, 0, 1) eq '/'
434 2 0 unless $mpc_config =~ m[^/]ou
436 0 2 unless (-r $mpc_config)
444 2 0 unless (grep {$_->{'name'} eq 'testrun_topic';} @{$$config{'required'};})
470 2 4 unless defined $all_form_elements{$name}
472 0 4 if (lc $element->{'type'} eq 'file')
490 4 0 if (defined $all_form_elements{$name}) { }
500 2 0 if $name eq 'submit'
503 0 0 if (ref $all_form_elements{$name} =~ /ARRAY/u) { }
512 0 2 unless open my $fh, '<', $config->{'file'}
518 0 2 unless $tt->process(\$mpc, \%macros, \$ttapplied)
523 0 2 if $@
538 0 2 unless $file
556 2 0 if ($config->{'mpc_config'})
563 1 1 if ($form->submitted_and_valid)
569 1 0 if ($testrun_topic) { }
576 0 1 if (defined $testrun_data->{'requested_hosts'}) { }
577 0 0 if (ref $testrun_data->{'requested_hosts'} eq 'ARRAY') { }
601 0 2 if ($@)
609 2 0 if (ref $preconditions eq 'ARRAY') { }
636 0 0 if ($hr_params->{'testrun_date'}) { }
0 0 elsif (not $hr_filter_condition->{'testrun_id'}) { }
644 0 0 if ($hr_params->{'pager_sign'} and $hr_params->{'pager_value'})
645 0 0 if ($hr_params->{'pager_sign'} eq 'negative') { }
0 0 elsif ($hr_params->{'pager_sign'} eq 'positive') { }
657 0 0 if ($hr_filter_condition->{'testrun_date'}) { }
666 0 0 if ($d_testrun_date_from ne $d_testrun_date_to) { }
717 0 0 if $i == $j
731 0 0 $c->stash->{'view_pager'} ? :