blib/lib/Search/Tools/TokenPP.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 2 / 2 totaltotal 100% 32 / 32 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Search/Tools/TokenList.pm ↑ Summary
1 package Search::Tools::TokenPP;
2 2 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 extends 'Search::Tools::Object';
4 2 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 use overload
6 252 ▶ '""' => sub { $_[0]->str; },
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
7 207 ▶ 'bool' => sub { $_[0]->len; },
Subroutine __ANON__: called CC=1 SCAR=0.0
8 2 fallback => 1;
9  
10 2 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 2 our $VERSION = '1.007';
13  
14 my @attrs
15 2 = qw( is_match is_hot pos str len u8len is_sentence_start is_sentence_end );
16  
17 2 for my $attr (@attrs) {
18 16 has $attr => ( is => 'rw' );
19 }
20  
21 188 ▶sub set_hot { $_[0]->is_hot( $_[1] ); }
Subroutine set_hot: called CC=1 SCAR=0.0
Pod documented
22 188 ▶sub set_match { $_[0]->is_match( $_[1] ); }
Subroutine set_match: called CC=1 SCAR=0.0
Pod documented
23  
24 2 1;
25  
26 __END__
« blib/lib/Search/Tools/TokenList.pm ↑ Summary