File Coverage

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


line stmt bran cond sub pod time code
1             package Regex::Object::Match;
2              
3 4     4   58 use 5.20.0;
  4         14  
4              
5 4     4   23 use utf8;
  4         7  
  4         40  
6 4     4   114 use English;
  4         8  
  4         17  
7 4     4   1444 use feature qw(signatures);
  4         7  
  4         369  
8              
9 4     4   3311 use Moo;
  4         47959  
  4         22  
10              
11 4     4   6328 no warnings qw(experimental::signatures);
  4         10  
  4         137  
12 4     4   2121 use namespace::clean;
  4         48494  
  4         26  
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 10980 sub BUILD($self, $args) {
  25         42  
  25         36  
  25         72  
26 25         290 $self->_set_success(defined $self->match);
27             }
28              
29             1;
30              
31             __END__