Branch Coverage

blib/lib/Test/BrewBuild/Tester.pm
Criterion Covered Total %
branch 0 136 0.0


line true false branch
27 0 0 defined $args{'stdout'} ? :
36 0 0 if (defined $args{'debug'})
37 0 0 if defined $args{'debug'}
43 0 0 if ($self->{'logfile'})
47 0 0 if ($self->{'log_to_stdout'})
57 0 0 unless defined $args{$_}
61 0 0 if ($arg_string)
78 0 0 if ($existing_pid)
79 0 0 if (kill 0, $existing_pid) { }
94 0 0 unless unlink $self->_pid_file
101 0 0 if ($^O =~ /MSWin/) { }
107 0 0 if (-x "$_/perl.exe")
113 0 0 if (-e "$_/bbtester")
131 0 0 if (defined $self->{'auto'})
133 0 0 if defined $self->{'csum'}
136 0 0 if (defined $self->{'debug'})
139 0 0 if ($self->{'logfile'})
143 0 0 unless -d $work_dir
144 0 0 unless chdir $work_dir
149 0 0 if ($^O =~ /MSWin/) { }
166 0 0 unless open my $wfh, '>', $self->_pid_file
172 0 0 if ($self->status)
176 0 0 if ($existing_pid)
177 0 0 if (not kill(0, $existing_pid))
194 0 0 unless ($self->status)
214 0 0 if (defined $self->pid and $self->pid) { }
215 0 0 if (not kill(0, $self->pid)) { }
218 0 0 unless unlink $self->_pid_file
236 0 0 if ($self->{'logfile'})
239 0 0 unless $self->{'log_to_stdout'}
248 0 0 unless $sock
259 0 0 unless -d $work_dir
291 0 0 if ($args[0] ne 'brewbuild')
301 0 0 if (grep /\Q$unsafe_arg\E/, @args)
317 0 0 if ($repo)
326 0 0 if (-d $repo_name) { }
327 0 0 unless chdir $repo_name
337 0 0 if (defined $self->{'auto'} and $self->{'auto'})
347 0 0 if $local_sum ne $remote_sum
356 0 0 unless (defined $self->{'csum'})
359 0 0 unless ($status)
369 0 0 if ($local_sum eq $remote_sum)
383 0 0 if ($csums_differ) { }
400 0 0 if (not $repo_cloned_ok) { }
416 0 0 if (defined $opts{'error'})
426 0 0 if defined $opts{$_}
428 0 0 if ($opt_str) { }
437 0 0 unless $self->{'log_to_stdout'}
439 0 0 if $opts{'remove'}
440 0 0 if ($opts{'install'}) { }
0 0 elsif ($opts{'new'}) { }
447 0 0 if ($opts{'notest'})
454 0 0 if ($opts{'revdep'}) { }
463 0 0 if (-d 'bblog')
468 0 0 if (@entries) { }
476 0 0 unless -f $_ and /\.bblog/
477 0 0 unless open my $fh, '<', $_
485 0 0 unless remove_tree('bblog')
502 0 0 if $self->{'ip'}
504 0 0 if (not $ip and $self->{'conf'}{'ip'})
507 0 0 unless $ip
513 0 0 if $self->{'port'}
515 0 0 if (not $port and $self->{'conf'}{'port'})
518 0 0 unless defined $port
528 0 0 if (-f $conf_file)
536 0 0 if (-f $_[0]->_pid_file) { }
537 0 0 unless open my $fh, '<', $_[0]->_pid_file
548 0 0 if defined $self->{'pid_file'}