blib/lib/Text/Prefix/XS.pm

filter: Statementstmt 75.0% 12 / 16 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 69.5% 16 / 23 SCAR 7.6
CC
2
Cov
67%
prefix_search_create
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.1
↑ Summary blib/lib/Text/Prefix/trie.pl »
1 package Text::Prefix::XS;
2 2 ▶use XSLoader;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 our $VERSION = '0.02-TRIAL';
7  
8 XSLoader::load __PACKAGE__, $VERSION;
9 2 ▶use base qw(Exporter);
Subroutine BEGIN: called CC=1 SCAR=0.0
10 our @EXPORT = qw(
11 prefix_search_build
12 prefix_search_create
13 prefix_search);
14 1;
15  
16 sub prefix_search_create(@)
17 {
18 0 ▶ my @copy = @_;
Subroutine prefix_search_create: not called CC=2 SCAR=17.9
19 0 ▶ @copy = sort { length $b <=> length $a || $a cmp $b } @copy;
Branch: 1 branch
BranchTrueFalseTotal
length $b <=> length $a or $a cmp $b 0 0 0
20 0 return prefix_search_build(\@copy);
21 }
22  
23 __END__
↑ Summary blib/lib/Text/Prefix/trie.pl »