Add some uncoverable directives
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Feb 2015 14:06:41 +0000 (16:06 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Feb 2015 14:06:41 +0000 (16:06 +0200)
lib/Gruntmaster/Daemon/Generator/File.pm
lib/Gruntmaster/Daemon/Runner/File.pm

index c5023a7..fee3ca6 100644 (file)
@@ -15,10 +15,10 @@ our $VERSION = '5999.000_004';
 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
        }
 }
 
index 386b02c..1a4829a 100644 (file)
@@ -19,10 +19,10 @@ sub run{
        $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+//;
This page took 0.026087 seconds and 4 git commands to generate.