blib/lib/KinoSearch1/Analysis/LCNormalizer.pm

filter: Statementstmt 100% 22 / 22 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 1 / 1 totaltotal 100% 32 / 32 CC 2 SCAR 2.2
CC
2
Cov
100%
analyze
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/KinoSearch1.pm ↑ Summary blib/lib/KinoSearch1/Store/RAMLock.pm »
1 package KinoSearch1::Analysis::LCNormalizer;
2 27 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 27 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 27 ▶use KinoSearch1::Util::ToolSet;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 27 ▶use base qw( KinoSearch1::Analysis::Analyzer );
Subroutine BEGIN: called CC=1 SCAR=0.0
6 27 ▶use locale;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 27 ▶BEGIN { __PACKAGE__->init_instance_vars(); }
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 11080 ▶sub analyze {
Subroutine analyze: called CC=2 SCAR=6.9
Pod documented
11 11080 my ( $self, $batch ) = @_;
12  
13 # lc all of the terms, one by one
14 11080 ▶ while ( $batch->next ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($batch->next) 11020 11080 22100
15 11020 $batch->set_text( lc( $batch->get_text ) );
16 }
17  
18 11080 $batch->reset;
19 11080 return $batch;
20 }
21  
22 27 1;
23  
24 __END__
« blib/lib/KinoSearch1.pm ↑ Summary blib/lib/KinoSearch1/Store/RAMLock.pm »