File Coverage

blib/lib/RPerl/Test/Critic/Class_01_Good.pm
Criterion Covered Total %
statement 66 69 95.6
branch n/a
condition n/a
subroutine 22 23 95.6
pod n/a
total 88 92 95.6


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   9 use RPerl;
  1         4  
  1         12  
4             package RPerl::Test::Critic::Class_01_Good;
5             use strict;
6 1     1   83 use warnings;
  1         5  
  1         27  
7 1     1   7 our $VERSION = 0.001_000;
  1         5  
  1         183  
8              
9 1     1   8 # [[[ OO INHERITANCE ]]]
  1         4  
  1         129  
10             use parent qw(RPerl::Test);
11             use RPerl::Test;
12              
13             # [[[ CRITICS ]]]
14 1     1   9 ## no critic qw(ProhibitUselessNoCritic ProhibitMagicNumbers RequireCheckedSyscalls) # USER DEFAULT 1: allow numeric values & print operator
  1         4  
  1         42  
15 1     1   7  
  1         5  
  1         12  
16             # [[[ OO PROPERTIES ]]]
17             our hashref $properties
18 1     1   87 = { empty_property => my integer $TYPED_empty_property = 2 };
  1         5  
  1         13  
19 1     1   12  
  1         8  
  1         12  
20             # [[[ SUBROUTINES & OO METHODS ]]]
21             sub empty_method { { my void::method $RETURN_TYPE }; return 2; }
22 1     1   99  
  1         5  
  1         28  
23 1     1   5 1; # end of class
  1         4  
  1         8