File Coverage

blib/lib/Regex/Object/Match.pm
Criterion Covered Total %
statement 24 24 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod 0 1 0.0
total 32 33 96.9


line stmt bran cond sub pod time code
1             package Regex::Object::Match;
2              
3 4     4   62 use 5.20.0;
  4         14  
4              
5 4     4   26 use utf8;
  4         7  
  4         36  
6 4     4   99 use English;
  4         15  
  4         20  
7 4     4   1482 use feature qw(signatures);
  4         8  
  4         297  
8              
9 4     4   3265 use Moo;
  4         49275  
  4         24  
10              
11 4     4   6689 no warnings qw(experimental::signatures);
  4         11  
  4         135  
12 4     4   2094 use namespace::clean;
  4         50651  
  4         27  
13              
14             has [qw(prematch match postmatch last_paren_match
15             captures named_captures named_captures_all)
16             ] => (
17             is => 'ro',
18             required => 1,
19             );
20              
21             has success => (
22             is => 'rwp',
23             );
24              
25 25     25 0 12684 sub BUILD($self, $) {
  25         38  
  25         33  
26 25         312 $self->_set_success(defined $self->match);
27             }
28              
29             1;
30              
31             __END__