]> iEval git - gruntmaster-daemon.git/commitdiff
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 c5023a75790e21e772cb65f5334c876687a0cc40..fee3ca6bf22d691e3a314756a15e4b5f13ada4fa 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 386b02c00b178886be8b04d365516205ad2fe10d..1a4829af01619227ddd514df1eed03b687f2abb3 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.024409 seconds and 4 git commands to generate.