File Coverage

blib/lib/RPerl/Test/Critic/Class_01_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             ## no critic qw(ProhibitUselessNoCritic PodSpelling ProhibitExcessMainComplexity) # DEVELOPER DEFAULT 1a: allow unreachable & POD-commented code; SYSTEM SPECIAL 4: allow complex code outside subroutines, must be on line 1
2             # [[[ HEADER ]]]
3 1     1   10 use RPerl;
  1         5  
  1         17  
4             package RPerl::Test::Critic::Class_01_Good;
5             use strict;
6 1     1   88 use warnings;
  1         7  
  1         400  
7 1     1   10 our $VERSION = 0.001_000;
  1         6  
  1         198  
8              
9 1     1   10 # [[[ OO INHERITANCE ]]]
  1         7  
  1         135  
10             use parent qw(RPerl::Test);
11             use RPerl::Test;
12              
13             # [[[ CRITICS ]]]
14 1     1   8 ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator
  1         6  
  1         45  
15 1     1   8  
  1         5  
  1         14  
16             # [[[ OO PROPERTIES ]]]
17             our hashref $properties
18 1     1   97 = { empty_property => my integer $TYPED_empty_property = 2 };
  1         4  
  1         288  
19 1     1   10  
  1         6  
  1         9  
20             # [[[ SUBROUTINES & OO METHODS ]]]
21             our void::method $empty_method = sub {
22 1     1   74 return 2;
  1         5  
  1         30  
23 1     1   7 };
  1         2  
  1         8  
24              
25             1; # end of class