blib/lib/Sort/Key/Maker.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Key.xs ↑ Summary
1 package Sort::Key::Maker;
2  
3 2 our $VERSION = '0.02';
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 qw(multikeysorter multikeysorter_inplace);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 our @CARP_NOT = qw(Sort::Key);
12  
13 11 ▶sub import {
Subroutine import: called CC=1 SCAR=0.0
14 11 my $class = shift;
15 11 my $name = shift;
16 11 my $caller = caller;
17  
18 2 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
19 11 *{"${caller}::${name}"} = multikeysorter @_;
20 11 *{"${caller}::${name}_inplace"} = multikeysorter_inplace @_;
21 }
22  
23 2 1;
24  
25 __END__
« Key.xs ↑ Summary