| 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->{$_} ||= []
MC/DC0%0/1
$self->{$_} ||= []
$self->{$_}
Truth table50%1/2
A
A= $self->{$_}
| |||||||||||||
| 30 | } | ||||||||||||
| 31 | 34 | 1; | |||||||||||
| 32 | |||||||||||||
| 33 | __END__ | ||||||||||||