File Coverage

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 2     2   2067 use strict;
  2         4  
  2         87  
4 2     2   13 use Data::Hopen::Base;
  2         3  
  2         19  
5              
6             our $VERSION = '0.000021';
7              
8 2     2   740 use parent 'Data::Hopen::G::Op';
  2         5  
  2         15  
9 2     2   143 use Class::Tiny;
  2         4  
  2         13  
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__