File Coverage

blib/lib/RPerl/Test/Subclass/MySubclasserA_Good.pm
Criterion Covered Total %
statement 69 95 72.6
branch n/a
condition n/a
subroutine 23 28 82.1
pod n/a
total 92 123 74.8


line stmt bran cond sub pod time code
1             # [[[ HEADER ]]]
2 1     1   9 use RPerl;
  1         4  
  1         11  
3             package RPerl::Test::Subclass::MySubclasserA_Good;
4             use strict;
5 1     1   75 use warnings;
  1         3  
  1         24  
6 1     1   5 our $VERSION = 0.001_000;
  1         2  
  1         186  
7              
8 1     1   8 # [[[ OO INHERITANCE ]]]
  1         5  
  1         122  
9             use parent qw(RPerl::Test);
10             use RPerl::Test;
11              
12             # [[[ CRITICS ]]]
13 1     1   7 ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator
  1         4  
  1         36  
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   83 # [[[ EXPORTS ]]]
  1         4  
  1         14  
18 1     1   14 use RPerl::Exporter qw(import);
  1         5  
  1         7  
19             our @EXPORT = qw(swings tinker_toys);
20              
21 1     1   82 # [[[ OO PROPERTIES ]]]
  1         5  
  1         30  
22 1     1   7 our hashref $properties = { preschool => my string $TYPED_preschool = 'Busy Beaver' };
  1         3  
  1         7  
23              
24             # [[[ SUBROUTINES & OO METHODS ]]]
25 1     1   60  
  1         3  
  1         11  
26 1     1   11 sub building_blocks {
  1         2  
  1         6  
27             { my RPerl::Test::Subclass::MySubclasserA_Good::method $RETURN_TYPE };
28             ( my RPerl::Test::Subclass::MySubclasserA_Good $self ) = @ARG;
29 1     1   70 $self->{preschool} .= '; ABCDEFG';
  1         3  
  1         26  
30 1     1   6 my RPerl::Test::Subclass::MySubclasserA_Good $chum = RPerl::Test::Subclass::MySubclasserA_Good->new();
  1         2  
  1         7  
31             return $chum;
32             }
33 1     1   66  
  1         2  
  1         29  
34 1     1   5 sub finger_paints {
  1         2  
  1         7  
35             { my RPerl::Test::Subclass::MySubclasserA_Good_arrayref::method $RETURN_TYPE };
36             ( my RPerl::Test::Subclass::MySubclasserA_Good $self ) = @ARG;
37             $self->{preschool} .= '; orange yellow red';
38             my RPerl::Test::Subclass::MySubclasserA_Good_arrayref $friends
39             = [ RPerl::Test::Subclass::MySubclasserA_Good->new(), RPerl::Test::Subclass::MySubclasserA_Good->new(),
40             RPerl::Test::Subclass::MySubclasserA_Good->new() ];
41 1     1   55 return $friends;
  1         2  
  1         29  
42 1     1   4 }
  1         2  
  1         57  
43              
44             sub sand_box {
45             { my RPerl::Test::Subclass::MySubclasserA_Good_hashref::method $RETURN_TYPE };
46             ( my RPerl::Test::Subclass::MySubclasserA_Good $self ) = @ARG;
47 1     1   9 $self->{preschool} .= '; castle';
  1         3  
  1         6  
48 1     1   67 my RPerl::Test::Subclass::MySubclasserA_Good_hashref $classmates = {
  1         4  
  1         146  
49 1     1   9 'alvin' => RPerl::Test::Subclass::MySubclasserA_Good->new(),
  1         6  
  1         94  
50 1     1   9 'simon' => RPerl::Test::Subclass::MySubclasserA_Good->new(),
  1         3  
  1         26  
51             'theodore' => RPerl::Test::Subclass::MySubclasserA_Good->new()
52             };
53             return $classmates;
54             }
55              
56             sub swings {
57             { my RPerl::Test::Subclass::MySubclasserA_Good_arrayref $RETURN_TYPE };
58 1     1   8 my RPerl::Test::Subclass::MySubclasserA_Good_arrayref $others
  1         3  
  1         10  
59             = [ RPerl::Test::Subclass::MySubclasserA_Good->new(), RPerl::Test::Subclass::MySubclasserA_Good->new() ];
60             return $others;
61             }
62              
63             sub tinker_toys {
64             { my RPerl::Test::Subclass::MySubclasserA_Good_hashref $RETURN_TYPE };
65             my RPerl::Test::Subclass::MySubclasserA_Good_hashref $peers
66             = { 'chip' => RPerl::Test::Subclass::MySubclasserA_Good->new(), 'dale' => RPerl::Test::Subclass::MySubclasserA_Good->new() };
67 0     0     return $peers;
  0            
68 0           }
69 0            
70 0           1; # end of class