]> iEval git - gruntmaster-daemon.git/blame_incremental - lib/Gruntmaster/Daemon/Generator/File.pm
Update Changes
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Generator / File.pm
... / ...
CommitLineData
1package Gruntmaster::Daemon::Generator::File;
2
3use 5.014000;
4use strict;
5use warnings;
6
7use File::Slurp qw/write_file/;
8use Log::Log4perl qw/get_logger/;
9
10our $VERSION = "5999.000_001";
11
12##################################################
13
14sub generate{
15 my ($test, $meta) = @_;
16 get_logger->trace("Generating test $test ...");
17 write_file 'input', $meta->{infile}[$test - 1]
18}
19
201;
21__END__
22
23=encoding utf-8
24
25=head1 NAME
26
27Gruntmaster::Daemon::Generator::File - Generate tests from files
28
29=head1 SYNOPSIS
30
31 use Gruntmaster::Daemon::Generator::File;
32 Gruntmaster::Daemon::Generator::File->generate(5, $meta);
33
34=head1 DESCRIPTION
35
36Gruntmaster::Daemon::Generator::File is a static test generator. Test C<$i> is C<< $meta->{infile}[$i - 1] >>.
37
38=head1 AUTHOR
39
40Marius Gavrilescu E<lt>marius@ieval.roE<gt>
41
42=head1 COPYRIGHT AND LICENSE
43
44Copyright (C) 2014 by Marius Gavrilescu
45
46This library is free software: you can redistribute it and/or modify
47it under the terms of the GNU Affero General Public License as published by
48the Free Software Foundation, either version 3 of the License, or
49(at your option) any later version.
50
51
52=cut
This page took 0.019096 seconds and 4 git commands to generate.