File Coverage

blib/lib/Data/Hopen/G/NoOp.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 18 18 100.0


line stmt bran cond sub pod time code
1             # Data::Hopen::G::NoOp - null operation. Used for testing.
2             package Data::Hopen::G::NoOp;
3 1     1   653 use strict;
  1         3  
  1         37  
4 1     1   8 use Data::Hopen::Base;
  1         2  
  1         10  
5              
6             our $VERSION = '0.000018';
7              
8 1     1   264 use parent 'Data::Hopen::G::Op';
  1         3  
  1         8  
9 1     1   106 use Class::Tiny;
  1         3  
  1         8  
10              
11             # Docs {{{1
12              
13             =head1 NAME
14              
15             Data::Hopen::G::NoOp - a no-op
16              
17             =head1 SYNOPSIS
18              
19             An C is a concrete L that returns C<{}>.
20             It is mostly used for testing.
21              
22             =head1 FUNCTIONS
23              
24             =cut
25              
26             # }}}1
27              
28             =head2 _run
29              
30             Return C<{}>. All arguments are ignored.
31             Usage: C<< my $hrOutputs = $op->run; >>.
32              
33             =cut
34              
35             sub _run {
36 1     1   4 return {};
37             } #run()
38              
39             1;
40             __END__