blib/lib/Sort/Key/Register.pm

filter: Statementstmt 93.7% 15 / 16 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 90.9% 20 / 22 CC 2 SCAR 3.6
CC
2
Cov
89%
import
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« blib/lib/Sort/Key.pm ↑ Summary Key.xs »
1 package Sort::Key::Register;
2  
3 2 our $VERSION = '1.30';
4  
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶use Sort::Key;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 7 ▶sub import {
Subroutine import: called CC=2 SCAR=7.4
11 7 my $class = shift;
12 7 my $name = shift;
13 7 ▶ if (@_ == 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (@_ == 1) { } 0 7 7
14 0 Sort::Key::Types::register_type($name, undef, @_);
15 }
16 else {
17 7 Sort::Key::Types::register_type($name, @_);
18 }
19 }
20  
21 2 1;
22 __END__
« blib/lib/Sort/Key.pm ↑ Summary Key.xs »