Hopen/G/FilesOp.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 27 CC 1 SCAR 6.9
CC
1
Cov
0%
_run
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # Build::Hopen::G::FilesOp - Op that outputs a list of files.
2 package Build::Hopen::G::FilesOp;
3 use Build::Hopen;
4 use Build::Hopen::Base;
5  
6 our $VERSION = '0.000008'; # TRIAL
7  
8 use parent 'Build::Hopen::G::Op';
9 use Class::Tiny {
10 files => sub { [] },
11 };
12  
13 # Docs {{{1
14  
15 =head1 NAME
16  
17 Build::Hopen::G::FilesOp - Op that holds a list of files.
18  
19 =head1 SYNOPSIS
20  
21 my $node = Build::Hopen::G::FilesOp(files=>['foo.c'], name=>'foo node');
22  
23 Used by L<Build::Hopen::H/files>.
24  
25 =head1 FUNCTIONS
26  
27 =cut
28  
29 # }}}1
30  
31 =head2 run
32  
33 Output a C<work> record holding the given names. See
34 L<Build::Hopen::Conventions/INTERNALS>.
35  
36 =cut
37  
38 sub _run {
39 my $self = shift or croak 'Need an instance';
40  
41 return { work => [ {
42 from => [], how => undef,
43 to => $self->files
44 } ] };
45 } #run()
46  
47 1;
48 __END__