line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
# [[[ PREPROCESSOR ]]] |
3
|
|
|
|
|
|
|
# <<< GENERATE_ERROR: 'ERROR ECOGEAS' >>> |
4
|
|
|
|
|
|
|
# <<< GENERATE_ERROR: 'P11' >>> |
5
|
|
|
|
|
|
|
# <<< GENERATE_ERROR: "OO property 'preschool' already declared in parent namespace 'RPerl::Test::Subclass::MySubclasserA_Good::'" >>> |
6
|
|
|
|
|
|
|
# <<< GENERATE_ERROR: 'name masking disallowed' >>> |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# [[[ HEADER ]]] |
9
|
1
|
|
|
1
|
|
10
|
use RPerl; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
13
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
package RPerl::Test::Subclass::MySubclasserB_Bad_00; |
12
|
|
|
|
|
|
|
use strict; |
13
|
1
|
|
|
1
|
|
72
|
use warnings; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
336
|
|
14
|
1
|
|
|
1
|
|
10
|
our $VERSION = 0.001_000; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
164
|
|
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
1
|
|
10
|
# [[[ OO INHERITANCE ]]] |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
129
|
|
17
|
|
|
|
|
|
|
use parent qw(RPerl::Test::Subclass::MySubclasserA_Good); |
18
|
|
|
|
|
|
|
use RPerl::Test::Subclass::MySubclasserA_Good; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# [[[ CRITICS ]]] |
21
|
1
|
|
|
1
|
|
10
|
## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
52
|
|
22
|
1
|
|
|
1
|
|
9
|
## no critic qw(RequireInterpolationOfMetachars) # USER DEFAULT 2: allow single-quoted control characters & sigils |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
14
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
# [[[ OO PROPERTIES ]]] |
25
|
1
|
|
|
1
|
|
85
|
our hashref $properties = { |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
281
|
|
26
|
1
|
|
|
1
|
|
11
|
preschool => my string $TYPED_preschool = 'Eager Muskrat', |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
7
|
|
27
|
|
|
|
|
|
|
kindergarten => my string $TYPED_kindergarten = 'Eagle Elementary' |
28
|
|
|
|
|
|
|
}; |
29
|
1
|
|
|
1
|
|
68
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
26
|
|
30
|
1
|
|
|
1
|
|
7
|
# [[[ SUBROUTINES & OO METHODS ]]] |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
8
|
|
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
our RPerl::Test::Subclass::MySubclasserB_Bad_00::method $alphabet = sub { |
33
|
1
|
|
|
1
|
|
61
|
( my RPerl::Test::Subclass::MySubclasserB_Bad_00 $self ) = @ARG; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
178
|
|
34
|
1
|
|
|
1
|
|
9
|
$self->{kindergarten} .= '; ABCDEFGHIJKLMNOPQRSTUVWXYZ'; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
8
|
|
35
|
|
|
|
|
|
|
my RPerl::Test::Subclass::MySubclasserA_Good $buddy = RPerl::Test::Subclass::MySubclasserA_Good->new(); |
36
|
|
|
|
|
|
|
my RPerl::Test::Subclass::MySubclasserB_Bad_00 $chum = RPerl::Test::Subclass::MySubclasserB_Bad_00->new(); |
37
|
1
|
|
|
1
|
|
64
|
return $chum; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
24
|
|
38
|
1
|
|
|
1
|
|
5
|
}; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
8
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our RPerl::Test::Subclass::MySubclasserB_Bad_00_arrayref::method $brush_paints = sub { |
41
|
1
|
|
|
1
|
|
65
|
( my RPerl::Test::Subclass::MySubclasserB_Bad_00 $self ) = @ARG; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
24
|
|
42
|
1
|
|
|
1
|
|
7
|
$self->{kindergarten} .= '; green blue purple'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
10
|
|
43
|
|
|
|
|
|
|
my RPerl::Test::Subclass::MySubclasserB_Bad_00_arrayref $friends |
44
|
|
|
|
|
|
|
= [ RPerl::Test::Subclass::MySubclasserB_Bad_00->new(), RPerl::Test::Subclass::MySubclasserB_Bad_00->new(), |
45
|
|
|
|
|
|
|
RPerl::Test::Subclass::MySubclasserB_Bad_00->new() ]; |
46
|
|
|
|
|
|
|
return $friends; |
47
|
|
|
|
|
|
|
}; |
48
|
|
|
|
|
|
|
|
49
|
1
|
|
|
1
|
|
52
|
our RPerl::Test::Subclass::MySubclasserB_Bad_00_hashref::method $clay = sub { |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
29
|
|
50
|
1
|
|
|
1
|
|
7
|
( my RPerl::Test::Subclass::MySubclasserB_Bad_00 $self ) = @ARG; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
56
|
|
51
|
|
|
|
|
|
|
$self->{kindergarten} .= '; bust'; |
52
|
|
|
|
|
|
|
my RPerl::Test::Subclass::MySubclasserB_Bad_00_hashref $classmates = { |
53
|
|
|
|
|
|
|
'huey' => RPerl::Test::Subclass::MySubclasserB_Bad_00->new(), |
54
|
|
|
|
|
|
|
'dewey' => RPerl::Test::Subclass::MySubclasserB_Bad_00->new(), |
55
|
1
|
|
|
1
|
|
6
|
'louie' => RPerl::Test::Subclass::MySubclasserB_Bad_00->new() |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
9
|
|
56
|
1
|
|
|
1
|
|
70
|
}; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
107
|
|
57
|
1
|
|
|
1
|
|
7
|
return $classmates; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
93
|
|
58
|
1
|
|
|
1
|
|
9
|
}; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
308
|
|
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
our RPerl::Test::Subclass::MySubclasserB_Bad_00_arrayref $seesaw = sub { |
61
|
|
|
|
|
|
|
my RPerl::Test::Subclass::MySubclasserA_Good_arrayref $strangers |
62
|
|
|
|
|
|
|
= [ RPerl::Test::Subclass::MySubclasserA_Good->new(), RPerl::Test::Subclass::MySubclasserA_Good->new() ]; |
63
|
|
|
|
|
|
|
my RPerl::Test::Subclass::MySubclasserB_Bad_00_arrayref $others |
64
|
|
|
|
|
|
|
= [ RPerl::Test::Subclass::MySubclasserB_Bad_00->new(), RPerl::Test::Subclass::MySubclasserB_Bad_00->new() ]; |
65
|
|
|
|
|
|
|
return $others; |
66
|
|
|
|
|
|
|
}; |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
our RPerl::Test::Subclass::MySubclasserB_Bad_00_hashref $erector_set = sub { |
69
|
|
|
|
|
|
|
my RPerl::Test::Subclass::MySubclasserA_Good_hashref $teachers |
70
|
|
|
|
|
|
|
= { 'launchpad' => RPerl::Test::Subclass::MySubclasserA_Good->new(), 'donald' => RPerl::Test::Subclass::MySubclasserA_Good->new() }; |
71
|
|
|
|
|
|
|
my RPerl::Test::Subclass::MySubclasserB_Bad_00_hashref $peers = { 'webbigail' => RPerl::Test::Subclass::MySubclasserB_Bad_00->new() }; |
72
|
|
|
|
|
|
|
return $peers; |
73
|
|
|
|
|
|
|
}; |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
1; # end of class |