From 91caf17d3c02de83419fb330ea70b4914a20de5f Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Wed, 23 Apr 2014 11:50:10 +0300 Subject: [PATCH] Remove t/FakeData.pm --- t/00-compile.t | 1 - t/01-jobs.t | 2 -- t/FakeData.pm | 41 ----------------------------------------- 3 files changed, 44 deletions(-) delete mode 100644 t/FakeData.pm diff --git a/t/00-compile.t b/t/00-compile.t index 038520c..28dd755 100644 --- a/t/00-compile.t +++ b/t/00-compile.t @@ -4,5 +4,4 @@ use strict; use warnings; use Test::More tests => 1; -use t::FakeData; BEGIN { use_ok('Gruntmaster::Daemon') }; diff --git a/t/01-jobs.t b/t/01-jobs.t index 16a8824..1aaea44 100644 --- a/t/01-jobs.t +++ b/t/01-jobs.t @@ -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 index f83c7c8..0000000 --- a/t/FakeData.pm +++ /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 -- 2.39.2