File Coverage

blib/lib/RPerl/Test/Exporter/Class_AC_Exporter_00_Good.pm
Criterion Covered Total %
statement 69 79 87.3
branch n/a
condition n/a
subroutine 23 25 92.0
pod n/a
total 92 104 88.4


line stmt bran cond sub pod time code
1             # [[[ HEADER ]]]
2 1     1   10 use RPerl;
  1         3  
  1         12  
3             package RPerl::Test::Exporter::Class_AC_Exporter_00_Good;
4             use strict;
5 1     1   67 use warnings;
  1         3  
  1         24  
6 1     1   6 our $VERSION = 0.001_000;
  1         4  
  1         220  
7              
8 1     1   9 # [[[ OO INHERITANCE ]]]
  1         4  
  1         123  
9             use parent qw(RPerl::CompileUnit::Module::Class);
10             use RPerl::CompileUnit::Module::Class;
11              
12             # [[[ CRITICS ]]]
13 1     1   8 ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator
  1         5  
  1         49  
14 1     1   8 ## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils
  1         4  
  1         10  
15             ## no critic qw(ProhibitAutomaticExportation) # SYSTEM SPECIAL 14: allow global exports from Config.pm & elsewhere
16              
17 1     1   75 # [[[ EXPORTS ]]]
  1         5  
  1         15  
18 1     1   10 use RPerl::Exporter qw(import);
  1         5  
  1         5  
19             our @EXPORT = qw(exported);
20             our @EXPORT_OK = qw(exported_ok);
21 1     1   65  
  1         2  
  1         26  
22 1     1   7 # [[[ OO PROPERTIES ]]]
  1         3  
  1         7  
23             our hashref $properties = {};
24              
25 1     1   54 # [[[ SUBROUTINES & OO METHODS ]]]
  1         4  
  1         10  
26 1     1   11  
  1         2  
  1         8  
27             sub exported {
28             { my integer $RETURN_TYPE };
29 1     1   62 ( my integer $arg ) = @ARG;
  1         2  
  1         23  
30 1     1   5 print 'in Class_AC_Exporter_00_Good::exported(), received $arg = ', $arg, "\n";
  1         4  
  1         6  
31             return ($arg * 23);
32             }
33 1     1   50  
  1         2  
  1         28  
34 1     1   6 sub exported_ok {
  1         3  
  1         5  
35             { my integer $RETURN_TYPE };
36             ( my integer $arg ) = @ARG;
37             print 'in Class_AC_Exporter_00_Good::exported_ok(), received $arg = ', $arg, "\n";
38             return ($arg * 42);
39             }
40              
41 1     1   66 1; # end of class
  1         5  
  1         25  
42 1     1   6  
  1         2  
  1         51