blib/lib/KinoSearch1/Index/TermVector.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 92.5% 25 / 27 CC 3 SCAR 5.9
CC
3
Cov
95%
init_instance
3.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.8
« blib/lib/KinoSearch1/Store/Lock.pm ↑ Summary blib/lib/KinoSearch1/Index/SegInfos.pm »
1 package KinoSearch1::Index::TermVector;
2 34 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 34 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 34 ▶use KinoSearch1::Util::ToolSet;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 34 ▶use base qw( KinoSearch1::Util::Class );
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 34 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
8 34 __PACKAGE__->init_instance_vars(
9 # params / members
10 field => undef,
11 text => undef,
12 positions => undef,
13 start_offsets => undef,
14 end_offsets => undef,
15 );
16 34 __PACKAGE__->ready_get_set(
17 qw(
18 field
19 text
20 positions
21 start_offsets
22 end_offsets
23 )
24 );
25 }
26  
27 4 ▶sub init_instance {
Subroutine init_instance: called CC=3 SCAR=11.4
Pod documented
28 4 my $self = shift;
29 4 ▶ $self->{$_} ||= [] for qw( positions start_offsets end_offsets );
Condition50%1/2
$self->{$_} ||= []
l!l
120
MC/DC0%0/1
$self->{$_} ||= []
$self->{$_}
Truth table50%1/2
A
A= $self->{$_}
Aresult
11
00
30 }
31 34 1;
32  
33 __END__
« blib/lib/KinoSearch1/Store/Lock.pm ↑ Summary blib/lib/KinoSearch1/Index/SegInfos.pm »