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'} ? :
60 0 0 if (not defined $params{'repo'}) { }
65 0 0 unless ($params{'repo'} =~ /^http/ and $params{'repo'} =~ /^git/)
70 0 0 defined $self->{'auto_sleep'} ? :
75 0 0 if $runs > 0
76 0 0 if $runs == 0
82 0 0 if (not $runs) { }
95 0 0 if (grep /FAIL/, @short_results) { }
0 0 elsif (grep /PASS/, @short_results) { }
110 0 0 if ($self->{'rpi'}) { }
113 0 0 if ($ENV{'BB_RPI_LCD'}) { }
114 0 0 if ($results_returned)
119 0 0 if (@lcd_info == 8)
124 0 0 if (not $lcd and @pins == 6) { }
0 0 elsif (not $lcd and @pins != 6) { }
145 0 0 if ($self->{'rpi_lcd_cols'} == 20) { }
189 0 0 if ($run_count >= $runs and $runs != 0) { }
236 0 0 if ($self->{'rpi_lcd_rows'} == 4 and $self->{'rpi_lcd_cols'} == 20) { }
270 0 0 unless $cmd
273 0 0 if (defined $repo and not $repo =~ /^http/ || $repo =~ /^git/)
283 0 0 if (not $testers->[0]) { }
295 0 0 if ($tester =~ /:/) { }
311 0 0 unless (-d 'bblog')
312 0 0 unless mkdir 'bblog'
321 0 0 unless (defined $remotes{$ip}{'build'})
334 0 0 unless open my $wfh, '>', "bblog/${ip}_$build_log"
345 0 0 if $build->{'log'}
347 0 0 if (ref $build->{'data'} eq 'ARRAY') { }
351 0 0 unless $build->{'data'}
365 0 1 if (-f $conf_file)
367 0 0 if ($conf->{'testers'})
371 0 0 if $conf->{'repo'}
372 0 0 if $conf->{'cmd'}
374 0 0 if defined $conf->{'auto_sleep'}
394 0 0 if keys %$tester_data
404 0 0 if $pm->start
413 0 0 unless ($socket)
429 0 0 if ($ack ne $tester)
434 0 0 unless ($cmd)
444 0 0 if ($check =~ /^error:/)
448 0 0 if ($check eq 'ok') { }
451 0 0 if (not $repo) { }
456 0 0 if ($repo_link) { }
470 0 0 unless ($repo_link)
490 0 0 unless ($ok or defined $self->{'auto'})