File Coverage

blib/lib/RPerl/Test/Subclass/MySubclasserA_Good.pm
Criterion Covered Total %
statement 66 66 100.0
branch n/a
condition n/a
subroutine 22 22 100.0
pod n/a
total 88 88 100.0


line stmt bran cond sub pod time code
1             # [[[ HEADER ]]]
2 1     1   11 use RPerl;
  1         7  
  1         13  
3              
4             package RPerl::Test::Subclass::MySubclasserA_Good;
5             use strict;
6 1     1   115 use warnings;
  1         11  
  1         423  
7 1     1   10 our $VERSION = 0.001_000;
  1         5  
  1         206  
8              
9 1     1   10 # [[[ OO INHERITANCE ]]]
  1         3  
  1         138  
10             use parent qw(RPerl::Test);
11             use RPerl::Test;
12              
13             # [[[ CRITICS ]]]
14 1     1   12 ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator
  1         4  
  1         40  
15 1     1   10 ## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils
  1         6  
  1         19  
16              
17             # [[[ OO PROPERTIES ]]]
18 1     1   95 our hashref $properties = { preschool => my string $TYPED_preschool = 'Busy Beaver' };
  1         4  
  1         320  
19 1     1   11  
  1         3  
  1         10  
20             # [[[ SUBROUTINES & OO METHODS ]]]
21              
22 1     1   73 our RPerl::Test::Subclass::MySubclasserA_Good::method $building_blocks = sub {
  1         4  
  1         25  
23 1     1   8 ( my RPerl::Test::Subclass::MySubclasserA_Good $self ) = @ARG;
  1         5  
  1         7  
24             $self->{preschool} .= '; ABCDEFG';
25             my RPerl::Test::Subclass::MySubclasserA_Good $chum = RPerl::Test::Subclass::MySubclasserA_Good->new();
26 1     1   59 return $chum;
  1         4  
  1         183  
27 1     1   10 };
  1         3  
  1         6  
28              
29             our RPerl::Test::Subclass::MySubclasserA_Good_arrayref::method $finger_paints = sub {
30 1     1   67 ( my RPerl::Test::Subclass::MySubclasserA_Good $self ) = @ARG;
  1         4  
  1         27  
31 1     1   5 $self->{preschool} .= '; orange yellow red';
  1         4  
  1         6  
32             my RPerl::Test::Subclass::MySubclasserA_Good_arrayref $friends
33             = [ RPerl::Test::Subclass::MySubclasserA_Good->new(), RPerl::Test::Subclass::MySubclasserA_Good->new(),
34 1     1   71 RPerl::Test::Subclass::MySubclasserA_Good->new() ];
  1         4  
  1         29  
35 1     1   6 return $friends;
  1         2  
  1         7  
36             };
37              
38             our RPerl::Test::Subclass::MySubclasserA_Good_hashref::method $sand_box = sub {
39             ( my RPerl::Test::Subclass::MySubclasserA_Good $self ) = @ARG;
40             $self->{preschool} .= '; castle';
41             my RPerl::Test::Subclass::MySubclasserA_Good_hashref $classmates = {
42 1     1   51 'alvin' => RPerl::Test::Subclass::MySubclasserA_Good->new(),
  1         6  
  1         28  
43 1     1   5 'simon' => RPerl::Test::Subclass::MySubclasserA_Good->new(),
  1         4  
  1         60  
44             'theodore' => RPerl::Test::Subclass::MySubclasserA_Good->new()
45             };
46             return $classmates;
47             };
48 1     1   6  
  1         2  
  1         9  
49 1     1   93 our RPerl::Test::Subclass::MySubclasserA_Good_arrayref $swings = sub {
  1         4  
  1         103  
50 1     1   7 my RPerl::Test::Subclass::MySubclasserA_Good_arrayref $others
  1         3  
  1         88  
51 1     1   9 = [ RPerl::Test::Subclass::MySubclasserA_Good->new(), RPerl::Test::Subclass::MySubclasserA_Good->new() ];
  1         3  
  1         274  
52             return $others;
53             };
54              
55             our RPerl::Test::Subclass::MySubclasserA_Good_hashref $tinker_toys = sub {
56             my RPerl::Test::Subclass::MySubclasserA_Good_hashref $peers
57             = { 'chip' => RPerl::Test::Subclass::MySubclasserA_Good->new(), 'dale' => RPerl::Test::Subclass::MySubclasserA_Good->new() };
58             return $peers;
59             };
60              
61             1; # end of class