sub generate{
my ($test, $meta) = @_;
get_logger->trace("Generating test $test ...");
- if (exists $meta->{infile}) {
+ if (exists $meta->{infile}) { # uncoverable branch false
write_file 'input', $meta->{infile}[$test - 1]
} else {
- copy "/var/lib/gruntmasterd/pb/$meta->{problem}/$test.in", 'input'
+ copy "/var/lib/gruntmasterd/pb/$meta->{problem}/$test.in", 'input' # uncoverable statement
}
}
$meta->{files}{prog}{run}->($meta->{files}{prog}{name}, fds => [qw/0 input 1 >output/], map {defined $meta->{$_} ? ($_ => $meta->{$_}) : () } qw/timeout olimit mlimit/);
my $out = slurp 'output';
my $ok;
- if (exists $meta->{okfile}) {
+ if (exists $meta->{okfile}) { # uncoverable branch false
$ok = $meta->{okfile}[$test - 1]
} else {
- $ok = slurp "/var/lib/gruntmasterd/pb/$meta->{problem}/$test.ok"
+ $ok = slurp "/var/lib/gruntmasterd/pb/$meta->{problem}/$test.ok" # uncoverable statement
}
$out =~ s/^\s+//;