]> iEval git - gruntmaster-daemon.git/commitdiff
Remove t/FakeData.pm
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 23 Apr 2014 08:50:10 +0000 (11:50 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 23 Apr 2014 08:50:10 +0000 (11:50 +0300)
t/00-compile.t
t/01-jobs.t
t/FakeData.pm [deleted file]

index 038520cdf124d6223f0621111b16807648afd694..28dd755759f69d7a1f82dcaf9a5d656bc8b56ab7 100644 (file)
@@ -4,5 +4,4 @@ use strict;
 use warnings;
 
 use Test::More tests => 1;
-use t::FakeData;
 BEGIN { use_ok('Gruntmaster::Daemon') };
index 16a88247a67010d64ba9c56e9dcf6cff9cc6c13d..1aaea443ece7e18b8235048cedc1f9cd7401ce23 100644 (file)
@@ -3,8 +3,6 @@ use v5.14;
 use strict;
 use warnings;
 
-use t::FakeData;
-BEGIN { Gruntmaster::Data->import }
 use Gruntmaster::Daemon;
 
 use Cwd qw/cwd/;
diff --git a/t/FakeData.pm b/t/FakeData.pm
deleted file mode 100644 (file)
index f83c7c8..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-package Gruntmaster::Data;
-use v5.14;
-use warnings;
-use parent qw/Exporter/;
-
-BEGIN { $INC{'Gruntmaster/Data.pm'} = 1; }
-
-my (@jobs, %problems);
-
-sub job_inmeta                         { $jobs[$_[0]]{inmeta} };
-sub set_job_inmeta                     { $jobs[$_[0]]{inmeta} = $_[1] };
-sub job_problem                        { $jobs[$_[0]]{problem} };
-sub set_job_problem            { $jobs[$_[0]]{problem} = $_[1] };
-
-sub set_job_result                     { $jobs[$_[0]]{result} = $_[1] };
-sub set_job_result_text        { $jobs[$_[0]]{result_text} = $_[1] };
-sub set_job_results            { $jobs[$_[0]]{results} = $_[1] };
-sub set_job_errors                     { $jobs[$_[0]]{errors} = $_[1] };
-sub set_job_daemon                     { $jobs[$_[0]]{daemon} = $_[1] };
-
-sub problem_meta                       { $problems{$_}{meta} }
-sub set_problem_meta           { $problems{$_[0]}{meta} = $_[1] }
-sub problem_generator {}
-sub problem_runner {}
-sub problem_judge {}
-sub problem_testcnt {}
-sub problem_timeout {}
-sub problem_olimit {}
-
-sub get_job { $jobs[$_[0]] }
-
-sub PUBLISH {}
-sub SUBSCRIBE {}
-sub WAIT_FOR_MESSAGES {}
-
-our @EXPORT = do {
-       no strict 'refs';
-       grep { $_ =~ /^[a-zA-Z]/ and exists &$_ } keys %{__PACKAGE__ . '::'};
-};
-
-1
This page took 0.024262 seconds and 4 git commands to generate.