File Coverage

blib/lib/RPerl/Test/Exporter/Class_A_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   8 use RPerl;
  1         3  
  1         11  
3             package RPerl::Test::Exporter::Class_A_Exporter_00_Good;
4             use strict;
5 1     1   90 use warnings;
  1         5  
  1         28  
6 1     1   6 our $VERSION = 0.001_000;
  1         2  
  1         189  
7              
8 1     1   9 # [[[ OO INHERITANCE ]]]
  1         4  
  1         130  
9             use parent qw(RPerl::CompileUnit::Module::Class);
10             use RPerl::CompileUnit::Module::Class;
11              
12             # [[[ CRITICS ]]]
13 1     1   10 ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator
  1         4  
  1         58  
14 1     1   7 ## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils
  1         3  
  1         12  
15              
16             # [[[ EXPORTS ]]]
17 1     1   84 use RPerl::Exporter qw(import);
  1         3  
  1         15  
18 1     1   14 our @EXPORT_OK = qw(exported_ok);
  1         5  
  1         8  
19              
20             # [[[ OO PROPERTIES ]]]
21 1     1   100 our hashref $properties = {};
  1         5  
  1         31  
22 1     1   4  
  1         4  
  1         7  
23             # [[[ SUBROUTINES & OO METHODS ]]]
24              
25 1     1   68 sub not_exported {
  1         6  
  1         17  
26 1     1   9 { my integer $RETURN_TYPE };
  1         8  
  1         8  
27             ( my integer $arg ) = @ARG;
28             print 'in Class_A_Exporter_00_Good::not_exported(), received $arg = ', $arg, "\n";
29 1     1   67 return ($arg * 12);
  1         3  
  1         29  
30 1     1   6 }
  1         2  
  1         7  
31              
32             sub exported_ok {
33 1     1   59 { my integer $RETURN_TYPE };
  1         2  
  1         28  
34 1     1   5 ( my integer $arg ) = @ARG;
  1         6  
  1         6  
35             print 'in Class_A_Exporter_00_Good::exported_ok(), received $arg = ', $arg, "\n";
36             return ($arg * 42);
37             }
38              
39             1; # end of class
40