blib/lib/KinoSearch1/Util/ToStringUtils.pm

filter: Statementstmt 87.5% 14 / 16 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 75.0% 18 / 24 CC 2 SCAR 9.8
CC
2
Cov
78%
boost_to_string
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« blib/lib/KinoSearch1/Index/CompoundFileWriter.pm ↑ Summary blib/lib/KinoSearch1/Search/MultiSearcher.pm »
1 package KinoSearch1::Util::ToStringUtils;
2 18 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 18 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 18 ▶use KinoSearch1::Util::ToolSet;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 18 ▶use base qw( Exporter );
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 18 our @EXPORT_OK = qw( boost_to_string );
8  
9 # return a stringified numerical boost if it actually does anything.
10 0 ▶sub boost_to_string {
Subroutine boost_to_string: not called CC=2 SCAR=17.9
Pod undocumented
11 0 my $boost = shift;
12 0 ▶ return $boost == 1 ? '' : "^$boost";
Branch: 1 branch
BranchTrueFalseTotal
$boost == 1 ? : 0 0 0
13 }
14  
15 18 1;
16  
17 __END__
« blib/lib/KinoSearch1/Index/CompoundFileWriter.pm ↑ Summary blib/lib/KinoSearch1/Search/MultiSearcher.pm »