Algorithm.pm

filter: Statementstmt 58.8% 20 / 34 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod n/a totaltotal 58.7% 27 / 46 CC 3 SCAR 10.1
CC
3
Cov
53%
AUTOLOAD
6.8
BEGIN
1.0
BEGIN
1.0
CRAP 2.7
« Algorithm/Searching.pm ↑ Summary
1 package Algorithm;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 our $AUTOLOAD;
7 1 our $VERSION = '0.05';
8  
9 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶ use Exporter;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 our @ISA=qw/Exporter/;
12 1 our @EXPORT=qw/&AUTOLOAD/;
13 }
14  
15 0 ▶sub AUTOLOAD {
Subroutine AUTOLOAD: not called CC=3 SCAR=19.2
16 0 my $subroutine=$AUTOLOAD;
17 0 $subroutine=~s/.*:://;
18  
19 0 ▶ if($subroutine=~/Search/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($subroutine =~ /Search/) 0 0 0
20 1 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
21 0 require Algorithm::Searching;
22 0 my $module='Algorithm::Searching';
23 0 my $callme=$module.'::'.$subroutine;
24  
25 0 &{$callme}(@_);
26 }
27  
28 0 ▶ if($subroutine=~/Sort/) {
Branch: 1 branch
BranchTrueFalseTotal
if ($subroutine =~ /Sort/) 0 0 0
29 1 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
30 0 require Algorithm::Sorting;
31 0 my $module='Algorithm::Sorting';
32 0 my $callme=$module.'::'.$subroutine;
33  
34 0 &{$callme}(@_);
35 }
36 }
37  
38 1 return 1;
39  
40 1 ▶END {}
Subroutine END: called CC=1 SCAR=0.0
41  
42 __END__
« Algorithm/Searching.pm ↑ Summary