File Coverage

blib/lib/RPerl/Test/Exporter/Class_C_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         5  
  1         12  
3             package RPerl::Test::Exporter::Class_C_Exporter_00_Good;
4             use strict;
5 1     1   123 use warnings;
  1         4  
  1         35  
6 1     1   7 our $VERSION = 0.001_000;
  1         5  
  1         241  
7              
8 1     1   10 # [[[ OO INHERITANCE ]]]
  1         3  
  1         137  
9             use parent qw(RPerl::CompileUnit::Module::Class);
10             use RPerl::CompileUnit::Module::Class;
11              
12             # [[[ CRITICS ]]]
13 1     1   9 ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator
  1         4  
  1         60  
14 1     1   8 ## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils
  1         4  
  1         12  
15             ## no critic qw(ProhibitAutomaticExportation) # SYSTEM SPECIAL 14: allow global exports from Config.pm & elsewhere
16              
17 1     1   89 # [[[ EXPORTS ]]]
  1         5  
  1         15  
18 1     1   33 use RPerl::Exporter qw(import);
  1         8  
  1         19  
19             our @EXPORT = qw(exported);
20              
21 1     1   125 # [[[ OO PROPERTIES ]]]
  1         3  
  1         35  
22 1     1   8 our hashref $properties = {};
  1         3  
  1         10  
23              
24             # [[[ SUBROUTINES & OO METHODS ]]]
25 1     1   114  
  1         3  
  1         9  
26 1     1   31 sub exported {
  1         7  
  1         18  
27             { my integer $RETURN_TYPE };
28             ( my integer $arg ) = @ARG;
29 1     1   203 print 'in Class_C_Exporter_00_Good::exported(), received $arg = ', $arg, "\n";
  1         7  
  1         56  
30 1     1   11 return ($arg * 120);
  1         3  
  1         12  
31             }
32              
33 1     1   124 sub not_exported_ok {
  1         7  
  1         61  
34 1     1   10 { my integer $RETURN_TYPE };
  1         4  
  1         15  
35             ( my integer $arg ) = @ARG;
36             print 'in Class_C_Exporter_00_Good::not_exported_ok(), received $arg = ', $arg, "\n";
37             return ($arg * 420);
38             }
39              
40             1; # end of class
41 1     1   106  
  1         7  
  1         46