File Coverage

blib/lib/RPerl/Test/Exporter/Class_A_Importer_10_Good.pm
Criterion Covered Total %
statement 72 82 87.8
branch n/a
condition n/a
subroutine 24 26 92.3
pod n/a
total 96 108 88.8


line stmt bran cond sub pod time code
1             # [[[ HEADER ]]]
2 1     1   9 use RPerl;
  1         4  
  1         12  
3             package RPerl::Test::Exporter::Class_A_Importer_10_Good;
4             use strict;
5 1     1   59 use warnings;
  1         5  
  1         26  
6 1     1   6 our $VERSION = 0.001_000;
  1         4  
  1         162  
7              
8 1     1   8 # [[[ OO INHERITANCE ]]]
  1         5  
  1         122  
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         48  
14 1     1   6 ## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils
  1         3  
  1         10  
15              
16             # [[[ EXPORTS ]]]
17 1     1   78 use RPerl::Exporter qw(import);
  1         4  
  1         12  
18 1     1   11 our @EXPORT_OK = qw(exported_ok);
  1         3  
  1         6  
19              
20             # [[[ INCLUDES ]]]
21 1     1   66 use RPerl::Test::Exporter::Class_A_Exporter_00_Good qw(exported_ok);
  1         5  
  1         25  
22 1     1   7  
  1         4  
  1         4  
23             # [[[ OO PROPERTIES ]]]
24             our hashref $properties = {};
25 1     1   57  
  1         1  
  1         8  
26 1     1   11 # [[[ SUBROUTINES & OO METHODS ]]]
  1         2  
  1         7  
27              
28             sub not_exported {
29 1     1   101 { my integer $RETURN_TYPE };
  1         5  
  1         50  
30 1     1   7 ( my integer $arg ) = @ARG;
  1         4  
  1         10  
31             print 'in Class_A_Importer_10_Good::not_exported(), received $arg = ', $arg, "\n";
32             return ($arg * -12);
33 1     1   85 }
  1         8  
  1         52  
34 1     1   12  
  1         4  
  1         12  
35             sub not_exported_ok {
36             { my integer $RETURN_TYPE };
37             ( my integer $arg ) = @ARG;
38             print 'in Class_A_Importer_10_Good::not_exported_ok(), received $arg = ', $arg, "\n";
39             return ($arg * -42);
40             }
41 1     1   87  
  1         7  
  1         45  
42 1     1   11 1; # end of class
  1         6  
  1         58  
43