File Coverage

blib/lib/RPerl/Test/Exporter/Class_C_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   8 use RPerl;
  1         4  
  1         12  
3             package RPerl::Test::Exporter::Class_C_Importer_10_Good;
4             use strict;
5 1     1   73 use warnings;
  1         4  
  1         25  
6 1     1   6 our $VERSION = 0.001_000;
  1         3  
  1         184  
7              
8 1     1   8 # [[[ OO INHERITANCE ]]]
  1         5  
  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         4  
  1         51  
14 1     1   7 ## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils
  1         4  
  1         11  
15             ## no critic qw(ProhibitAutomaticExportation) # SYSTEM SPECIAL 14: allow global exports from Config.pm & elsewhere
16              
17 1     1   79 # [[[ EXPORTS ]]]
  1         12  
  1         13  
18 1     1   16 use RPerl::Exporter qw(import);
  1         2  
  1         11  
19             our @EXPORT = qw(exported);
20              
21 1     1   94 # [[[ INCLUDES ]]]
  1         5  
  1         58  
22 1     1   8 use RPerl::Test::Exporter::Class_C_Exporter_00_Good;
  1         3  
  1         7  
23              
24             # [[[ OO PROPERTIES ]]]
25 1     1   73 our hashref $properties = {};
  1         4  
  1         12  
26 1     1   11  
  1         4  
  1         8  
27             # [[[ SUBROUTINES & OO METHODS ]]]
28              
29 1     1   82 sub not_exported {
  1         4  
  1         26  
30 1     1   7 { my integer $RETURN_TYPE };
  1         2  
  1         4  
31             ( my integer $arg ) = @ARG;
32             print 'in Class_C_Importer_10_Good::not_exported(), received $arg = ', $arg, "\n";
33 1     1   55 return ($arg * -120);
  1         2  
  1         28  
34 1     1   6 }
  1         4  
  1         6  
35              
36             sub not_exported_ok {
37             { my integer $RETURN_TYPE };
38             ( my integer $arg ) = @ARG;
39             print 'in Class_C_Importer_10_Good::not_exported_ok(), received $arg = ', $arg, "\n";
40             return ($arg * -420);
41 1     1   55 }
  1         2  
  1         30  
42 1     1   7  
  1         3  
  1         59  
43             1; # end of class
44