File Coverage

inc/My/Module/Mock_Tokenizer.pm
Criterion Covered Total %
statement 24 24 100.0
branch 1 2 50.0
condition 1 3 33.3
subroutine 10 10 100.0
pod 4 4 100.0
total 40 43 93.0


line stmt bran cond sub pod time code
1             package My::Module::Mock_Tokenizer;
2              
3 1     1   611 use 5.006;
  1         3  
4              
5 1     1   4 use strict;
  1         2  
  1         20  
6 1     1   4 use warnings;
  1         2  
  1         21  
7              
8 1     1   6 use Carp;
  1         1  
  1         71  
9              
10             our $VERSION = '0.088';
11              
12 1     1   6 use constant ARRAY_REF => ref [];
  1         2  
  1         267  
13              
14             sub new {
15 7     7 1 18 my ( $class, %arg ) = @_;
16 7   33     65 return bless \%arg, ref $class || $class;
17             }
18              
19             sub capture {
20 1     1 1 4 my ( $self ) = @_;
21             ARRAY_REF eq ref $self->{capture}
22 1 50       6 or return;
23 1         2 return @{ $self->{capture} };
  1         3  
24             }
25              
26             sub cookie {
27 4     4 1 9 my ( $self, $cookie ) = @_;
28 4         15 return $self->{cookie}{$cookie};
29             }
30              
31       2 1   sub modifier_modify {}
32              
33             sub __recognize_postderef {
34 2     2   4 my ( $self ) = @_;
35 2         6 return $self->{postderef};
36             }
37              
38             1;
39              
40             __END__