File Coverage

blib/lib/RPerl/Test/Constant/Class_00_Good.pm
Criterion Covered Total %
statement 72 72 100.0
branch n/a
condition n/a
subroutine 24 24 100.0
pod n/a
total 96 96 100.0


line stmt bran cond sub pod time code
1             # [[[ HEADER ]]]
2 1     1   10 use RPerl;
  1         5  
  1         16  
3             package RPerl::Test::Constant::Class_00_Good;
4             use strict;
5 1     1   86 use warnings;
  1         7  
  1         387  
6 1     1   11 our $VERSION = 0.001_000;
  1         4  
  1         196  
7              
8 1     1   12 # [[[ OO INHERITANCE ]]]
  1         4  
  1         136  
9             use parent qw(RPerl::Test);
10             use RPerl::Test;
11              
12             # [[[ CONSTANTS ]]]
13 1     1   11 ## no critic qw(ProhibitConstantPragma ProhibitMagicNumbers) # USER DEFAULT 3: allow constants
  1         6  
  1         60  
14 1     1   10 use constant PI => my number $TYPED_PI = 3.141_59;
  1         2  
  1         16  
15             use constant PIE => my string $TYPED_PIE = 'pecan';
16              
17 1     1   93 # [[[ OO PROPERTIES ]]]
  1         3  
  1         292  
18 1     1   6 our hashref $properties
  1         5  
  1         9  
19             = { empty_property => my integer $TYPED_empty_property = 2 };
20              
21 1     1   89 # [[[ SUBROUTINES & OO METHODS ]]]
  1         6  
  1         24  
22 1     1   5 our void::method $empty_method = sub {
  1         3  
  1         6  
23             return 2;
24             };
25 1     1   60  
  1         6  
  1         189  
26 1     1   9 1; # end of class
  1         3  
  1         7