line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# [[[ HEADER ]]] |
2
|
1
|
|
|
1
|
|
10
|
use RPerl; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
16
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package RPerl::Test::Subclass::MySubclasserB_Good; |
5
|
|
|
|
|
|
|
use strict; |
6
|
1
|
|
|
1
|
|
82
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
346
|
|
7
|
1
|
|
|
1
|
|
11
|
our $VERSION = 0.001_000; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
176
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
10
|
# [[[ OO INHERITANCE ]]] |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
128
|
|
10
|
|
|
|
|
|
|
use parent qw(RPerl::Test::Subclass::MySubclasserA_Good); |
11
|
|
|
|
|
|
|
use RPerl::Test::Subclass::MySubclasserA_Good; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# [[[ CRITICS ]]] |
14
|
1
|
|
|
1
|
|
11
|
## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
53
|
|
15
|
1
|
|
|
1
|
|
9
|
## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
13
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# [[[ OO PROPERTIES ]]] |
18
|
1
|
|
|
1
|
|
84
|
our hashref $properties = { kindergarten => my string $TYPED_kindergarten = 'Eagle Elementary' }; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
277
|
|
19
|
1
|
|
|
1
|
|
11
|
|
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
8
|
|
20
|
|
|
|
|
|
|
# [[[ SUBROUTINES & OO METHODS ]]] |
21
|
|
|
|
|
|
|
|
22
|
1
|
|
|
1
|
|
70
|
our RPerl::Test::Subclass::MySubclasserB_Good::method $alphabet = sub { |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
25
|
|
23
|
1
|
|
|
1
|
|
6
|
( my RPerl::Test::Subclass::MySubclasserB_Good $self ) = @ARG; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
8
|
|
24
|
|
|
|
|
|
|
$self->{kindergarten} .= '; ABCDEFGHIJKLMNOPQRSTUVWXYZ'; |
25
|
|
|
|
|
|
|
my RPerl::Test::Subclass::MySubclasserA_Good $buddy = RPerl::Test::Subclass::MySubclasserA_Good->new(); |
26
|
1
|
|
|
1
|
|
60
|
my RPerl::Test::Subclass::MySubclasserB_Good $chum = RPerl::Test::Subclass::MySubclasserB_Good->new(); |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
180
|
|
27
|
1
|
|
|
1
|
|
9
|
return $chum; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
9
|
|
28
|
|
|
|
|
|
|
}; |
29
|
|
|
|
|
|
|
|
30
|
1
|
|
|
1
|
|
66
|
our RPerl::Test::Subclass::MySubclasserB_Good_arrayref::method $brush_paints = sub { |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
22
|
|
31
|
1
|
|
|
1
|
|
5
|
( my RPerl::Test::Subclass::MySubclasserB_Good $self ) = @ARG; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
7
|
|
32
|
|
|
|
|
|
|
$self->{kindergarten} .= '; green blue purple'; |
33
|
|
|
|
|
|
|
my RPerl::Test::Subclass::MySubclasserB_Good_arrayref $friends |
34
|
1
|
|
|
1
|
|
57
|
= [ RPerl::Test::Subclass::MySubclasserB_Good->new(), RPerl::Test::Subclass::MySubclasserB_Good->new(), |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
29
|
|
35
|
1
|
|
|
1
|
|
7
|
RPerl::Test::Subclass::MySubclasserB_Good->new() ]; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
7
|
|
36
|
|
|
|
|
|
|
return $friends; |
37
|
|
|
|
|
|
|
}; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
our RPerl::Test::Subclass::MySubclasserB_Good_hashref::method $clay = sub { |
40
|
|
|
|
|
|
|
( my RPerl::Test::Subclass::MySubclasserB_Good $self ) = @ARG; |
41
|
|
|
|
|
|
|
$self->{kindergarten} .= '; bust'; |
42
|
1
|
|
|
1
|
|
51
|
my RPerl::Test::Subclass::MySubclasserB_Good_hashref $classmates = { |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
26
|
|
43
|
1
|
|
|
1
|
|
7
|
'huey' => RPerl::Test::Subclass::MySubclasserB_Good->new(), |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
57
|
|
44
|
|
|
|
|
|
|
'dewey' => RPerl::Test::Subclass::MySubclasserB_Good->new(), |
45
|
|
|
|
|
|
|
'louie' => RPerl::Test::Subclass::MySubclasserB_Good->new() |
46
|
|
|
|
|
|
|
}; |
47
|
|
|
|
|
|
|
return $classmates; |
48
|
1
|
|
|
1
|
|
7
|
}; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
6
|
|
49
|
1
|
|
|
1
|
|
74
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
100
|
|
50
|
1
|
|
|
1
|
|
7
|
our RPerl::Test::Subclass::MySubclasserB_Good_arrayref $seesaw = sub { |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
102
|
|
51
|
1
|
|
|
1
|
|
8
|
my RPerl::Test::Subclass::MySubclasserA_Good_arrayref $strangers |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
395
|
|
52
|
|
|
|
|
|
|
= [ RPerl::Test::Subclass::MySubclasserA_Good->new(), RPerl::Test::Subclass::MySubclasserA_Good->new() ]; |
53
|
|
|
|
|
|
|
my RPerl::Test::Subclass::MySubclasserB_Good_arrayref $others |
54
|
|
|
|
|
|
|
= [ RPerl::Test::Subclass::MySubclasserB_Good->new(), RPerl::Test::Subclass::MySubclasserB_Good->new() ]; |
55
|
|
|
|
|
|
|
return $others; |
56
|
|
|
|
|
|
|
}; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
our RPerl::Test::Subclass::MySubclasserB_Good_hashref $erector_set = sub { |
59
|
|
|
|
|
|
|
my RPerl::Test::Subclass::MySubclasserA_Good_hashref $teachers |
60
|
|
|
|
|
|
|
= { 'launchpad' => RPerl::Test::Subclass::MySubclasserA_Good->new(), 'donald' => RPerl::Test::Subclass::MySubclasserA_Good->new() }; |
61
|
|
|
|
|
|
|
my RPerl::Test::Subclass::MySubclasserB_Good_hashref $peers = { 'webbigail' => RPerl::Test::Subclass::MySubclasserB_Good->new() }; |
62
|
|
|
|
|
|
|
return $peers; |
63
|
|
|
|
|
|
|
}; |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
1; # end of class |