blib/lib/Regexp/MinLength.pm

filter: Statementstmt 71.0% 27 / 38 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 6 / 8 Podpod n/a totaltotal 66.0% 33 / 50 CC 3 SCAR 11.8
CC
3
Cov
64%
AUTOLOAD
8.2
__ANON__
2.0
BEGIN
1.0
CRAP 3.3
↑ Summary const-c.inc »
1 package Regexp::MinLength;
2  
3 2 ▶use 5.10.1;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 require Exporter;
9 2 ▶use AutoLoader;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 2 our @ISA = qw(Exporter);
12  
13 2 our %EXPORT_TAGS = ( 'all' => [ qw(
14 ) ] );
15  
16 2 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
17  
18 2 our @EXPORT = qw(
19 MinLength
20 );
21  
22 2 our $VERSION = '0.03';
23  
24 0 ▶sub AUTOLOAD {
Subroutine AUTOLOAD: not called CC=3 SCAR=21.1
25 # This AUTOLOAD is used to 'autoload' constants from the constant()
26 # XS function.
27  
28 0 my $constname;
29 0 our $AUTOLOAD;
30 0 ($constname = $AUTOLOAD) =~ s/.*:://;
31 0 ▶ croak "&Regexp::constant not defined" if $constname eq 'constant';
Branch: 1 branch
BranchTrueFalseTotal
if $constname eq "constant" 0 0 0
32 0 my ($error, $val) = constant($constname);
33 0 ▶ if ($error) { croak $error; }
Branch: 1 branch
BranchTrueFalseTotal
if ($error) 0 0 0
34 {
35 0 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.2
36 0 ▶ *$AUTOLOAD = sub { $val };
Subroutine __ANON__: not called CC=1 SCAR=6.9
37 }
38 0 goto &$AUTOLOAD;
39 }
40  
41 2 require XSLoader;
42 2 XSLoader::load('Regexp::MinLength', $VERSION);
43  
44 # Preloaded methods go here.
45  
46 # Autoload methods go after =cut, and are processed by the autosplit program.
47  
48 2 1;
49 __END__
↑ Summary const-c.inc »