Branch Coverage

blib/lib/Test/BrewBuild/Dispatch.pm
Criterion Covered Total %
branch 5 98 5.1


line true false branch
35 0 1 if (defined $args{'debug'})
36 0 0 if defined $args{'debug'}
43 0 1 if defined $args{'autotest'}
44 1 0 defined $args{'forks'} ? :
45 0 1 defined $args{'rpi'} ? :
61 0 0 if (not defined $params{'repo'}) { }
66 0 0 unless ($params{'repo'} =~ /^http/ and $params{'repo'} =~ /^git/)
71 0 0 defined $self->{'auto_sleep'} ? :
78 0 0 if $runs > 0
79 0 0 if $runs == 0
85 0 0 if (not $runs) { }
98 0 0 if (grep /FAIL/, @short_results) { }
0 0 elsif (grep /PASS/, @short_results) { }
114 0 0 if ($self->{'rpi'}) { }
117 0 0 if ($ENV{'BB_RPI_LCD'}) { }
118 0 0 if ($results_returned)
123 0 0 if (@lcd_info == 8)
128 0 0 if (not $lcd and @pins == 6) { }
0 0 elsif (not $lcd and @pins != 6) { }
149 0 0 if ($self->{'rpi_lcd_cols'} == 20) { }
193 0 0 if ($run_count >= $runs and $runs != 0) { }
240 0 0 if ($self->{'rpi_lcd_rows'} == 4 and $self->{'rpi_lcd_cols'} == 20) { }
277 0 0 unless $cmd
280 0 0 if (defined $repo and not $repo =~ /^http/ || $repo =~ /^git/)
290 0 0 if (not $testers->[0]) { }
302 0 0 if ($tester =~ /:/) { }
318 0 0 unless (-d 'bblog')
319 0 0 unless mkdir 'bblog'
328 0 0 unless (defined $remotes{$ip}{'build'})
341 0 0 unless open my $wfh, '>', "bblog/${ip}_$build_log"
352 0 0 if $build->{'log'}
354 0 0 if (ref $build->{'data'} eq 'ARRAY') { }
358 0 0 unless $build->{'data'}
372 0 1 if (-f $conf_file)
374 0 0 if ($conf->{'testers'})
378 0 0 if $conf->{'repo'}
379 0 0 if $conf->{'cmd'}
381 0 0 if defined $conf->{'auto_sleep'}
400 0 0 if keys %$tester_data
410 0 0 if $pm->start
419 0 0 unless ($socket)
435 0 0 if ($ack ne $tester)
440 0 0 unless ($cmd)
450 0 0 if ($check =~ /^error:/)
454 0 0 if ($check eq 'ok') { }
457 0 0 if (not $repo) { }
462 0 0 if ($repo_link) { }
476 0 0 unless ($repo_link)
496 0 0 unless ($ok or defined $self->{'auto'})