KernelKMeans.pm

filter: Statementstmt 100% 17 / 17 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 23 / 23 CC 3 SCAR 6.9
CC
3
Cov
100%
BEGIN
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 2.0
« KernelKMeans/Util.pm ↑ Summary
1 package Algorithm::KernelKMeans;
2  
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 2 ▶use UNIVERSAL::require;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 our $VERSION = '0.03';
8  
9 2 ▶BEGIN {
Subroutine BEGIN: called CC=3 SCAR=11.0
10 2 for my $impl (qw/XS PP/) {
11 4 my $impl_class = __PACKAGE__ . '::' . $impl;
12 4 ▶ if ($impl_class->require) {
Branch: 1 branch
BranchTrueFalseTotal
if ($impl_class->require) 2 2 4
13 2 our $IMPLEMENTATION = $impl;
14 2 parent->use($impl_class); # be child of $impl_class
15 2 last;
16 }
17 }
18 }
19  
20 2 1;
21  
22 __END__
« KernelKMeans/Util.pm ↑ Summary