blib/lib/Text/JaroWinkler.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond 100% 4 / 4 MC/DCmcdc 100% 2 / 2 Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 1 totaltotal 97.1% 34 / 35 CC 3 SCAR 6.9
CC
3
Cov
100%
strcmp95
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
↑ Summary strcmp95.c »
1 package Text::JaroWinkler;
2  
3 1 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 require Exporter;
8 1 require DynaLoader;
9  
10 1 our @ISA = qw(Exporter DynaLoader);
11  
12 # Items to export into callers namespace by default. Note: do not export
13 # names by default without a very good reason. Use EXPORT_OK instead.
14 # Do not simply export all your public functions/methods/constants.
15 # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
16 # will save memory.
17 1 our %EXPORT_TAGS = ( 'all' => [ qw(
18 strcmp95
19 do_strcmp95
20 ) ] );
21  
22 1 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
23  
24 1 our @EXPORT = qw();
25  
26 1 our $VERSION = '0.1';
27  
28 1 bootstrap Text::JaroWinkler $VERSION;
29  
30 # Preloaded methods go here.
31  
32 15 ▶sub strcmp95 {
Subroutine strcmp95: called CC=3 SCAR=11.0
Pod undocumented
33 15 my($ying, $yang, $y_length, %opt) = @_;
34 15 $ying = sprintf("%*.*s", -$y_length, $y_length, $ying);
35 15 $yang = sprintf("%*.*s", -$y_length, $y_length, $yang);
36  
37 15 ▶ my $high_prob = $opt{HIGH_PROB} || 0;
Condition100%2/2
$opt{'HIGH_PROB'} || 0
l!l
411
MC/DC100%1/1
$opt{'HIGH_PROB'} || 0
$opt{'HIGH_PROB'}
Truth table100%2/2
A
A= $opt{'HIGH_PROB'}
Aresult
11
00
38 15 ▶ my $toupper = $opt{TOUPPER} || 0;
Condition100%2/2
$opt{'TOUPPER'} || 0
l!l
411
MC/DC100%1/1
$opt{'TOUPPER'} || 0
$opt{'TOUPPER'}
Truth table100%2/2
A
A= $opt{'TOUPPER'}
Aresult
11
00
39 15 do_strcmp95($ying, $yang, $y_length, $high_prob, $toupper);
40 }
41  
42 1 1;
43 __END__
↑ Summary strcmp95.c »