Branch Coverage

blib/lib/Test/BrewBuild/Dispatch.pm
Criterion Covered Total %
branch 5 100 5.0


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) { }
214 0 0 unless $cmd
217 0 0 if (defined $repo and not $repo =~ /^http/ || $repo =~ /^git/)
227 0 0 if (not $testers->[0]) { }
239 0 0 if ($tester =~ /:/) { }
255 0 0 unless (-d 'bblog')
256 0 0 unless mkdir 'bblog'
265 0 0 unless (defined $remotes{$ip}{'build'})
279 0 0 unless open my $wfh, '>', "bblog/${ip}_$build_log.$timestamp"
290 0 0 if $build->{'log'}
292 0 0 if (ref $build->{'data'} eq 'ARRAY') { }
296 0 0 unless $build->{'data'}
310 0 1 if (-f $conf_file)
312 0 0 if ($conf->{'testers'})
316 0 0 if $conf->{'repo'}
317 0 0 if $conf->{'cmd'}
319 0 0 if defined $conf->{'auto_sleep'}
338 0 0 if keys %$tester_data
348 0 0 if $pm->start
358 0 0 unless ($socket)
374 0 0 if ($ack ne $tester)
379 0 0 unless ($cmd)
389 0 0 if ($check =~ /^error:/)
393 0 0 if ($check eq 'ok') { }
396 0 0 if (not $repo) { }
401 0 0 if ($repo_link) { }
415 0 0 unless ($repo_link)
431 0 0 if ($repo_clone_check =~ /error/)
443 0 0 unless ($ok or defined $self->{'auto'})
495 0 0 if ($self->{'rpi_lcd_rows'} == 4 and $self->{'rpi_lcd_cols'} == 20) { }