line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# [[[ HEADER ]]] |
2
|
1
|
|
|
1
|
|
10
|
use RPerl; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
20
|
|
3
|
|
|
|
|
|
|
package RPerl::Test::Properties::Class_00_Good; |
4
|
|
|
|
|
|
|
use strict; |
5
|
1
|
|
|
1
|
|
134
|
use warnings; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
415
|
|
6
|
1
|
|
|
1
|
|
18
|
our $VERSION = 0.001_000; |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
259
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
12
|
# [[[ OO INHERITANCE ]]] |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
207
|
|
9
|
|
|
|
|
|
|
use parent qw(RPerl::Test); |
10
|
|
|
|
|
|
|
use RPerl::Test; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# [[[ OO PROPERTIES ]]] |
13
|
1
|
|
|
1
|
|
16
|
our hashref $properties |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
64
|
|
14
|
1
|
|
|
1
|
|
11
|
= { test_property => my integer $TYPED_test_property = 2 }; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
19
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# [[[ SUBROUTINES & OO METHODS ]]] |
17
|
1
|
|
|
1
|
|
109
|
our void::method $test_method = sub { |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
303
|
|
18
|
1
|
|
|
1
|
|
10
|
( my object $self, my integer $input_integer ) = @ARG; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
10
|
|
19
|
|
|
|
|
|
|
$self->{test_property} *= $input_integer; |
20
|
|
|
|
|
|
|
return $self->{test_property}; |
21
|
1
|
|
|
1
|
|
79
|
}; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
29
|
|
22
|
1
|
|
|
1
|
|
5
|
|
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
10
|
|
23
|
|
|
|
|
|
|
1; # end of class |