]> iEval git - gruntmaster-daemon.git/blame_incremental - t/FakeData.pm
Update POD
[gruntmaster-daemon.git] / t / FakeData.pm
... / ...
CommitLineData
1package Gruntmaster::Data;
2use v5.14;
3use warnings;
4use parent qw/Exporter/;
5
6BEGIN { $INC{'Gruntmaster/Data.pm'} = 1; }
7
8my (@jobs, %problems);
9
10sub job_inmeta { $jobs[$_[0]]{inmeta} };
11sub set_job_inmeta { $jobs[$_[0]]{inmeta} = $_[1] };
12sub job_problem { $jobs[$_[0]]{problem} };
13sub set_job_problem { $jobs[$_[0]]{problem} = $_[1] };
14
15sub set_job_result { $jobs[$_[0]]{result} = $_[1] };
16sub set_job_result_text { $jobs[$_[0]]{result_text} = $_[1] };
17sub set_job_results { $jobs[$_[0]]{results} = $_[1] };
18sub set_job_errors { $jobs[$_[0]]{errors} = $_[1] };
19sub set_job_daemon { $jobs[$_[0]]{daemon} = $_[1] };
20
21sub problem_meta { $problems{$_[0]}{meta} }
22sub set_problem_meta { $problems{$_[0]}{meta} = $_[1] }
23
24sub get_job { $jobs[$_[0]] }
25
26sub PUBLISH {}
27sub SUBSCRIBE {}
28sub WAIT_FOR_MESSAGES {}
29
30our @EXPORT = do {
31 no strict 'refs';
32 grep { $_ =~ /^[a-zA-Z]/ and exists &$_ } keys %{__PACKAGE__ . '::'};
33};
34
351
This page took 0.023323 seconds and 4 git commands to generate.