blib/lib/Regexp/Copy.pm

filter: Statementstmt 95.6% 22 / 23 Branchbran 50.0% 1 / 2 Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 82.8% 29 / 35 CC 4 SCAR 12.6
CC
4
Cov
86%
re_copy
5.4
BEGIN
1.0
BEGIN
1.0
CRAP 3.5
« blib/lib/Regexp/Storable.pm ↑ Summary Copy.xs »
1 package Regexp::Copy;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Regexp::Storable;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 require Carp;
9 1 require Exporter;
10 1 require DynaLoader;
11 1 require AutoLoader;
12  
13 1 @ISA = qw(Exporter DynaLoader);
14  
15 1 @EXPORT = qw( );
16 1 @EXPORT_OK = qw(re_copy);
17 1 $VERSION = '0.06';
18  
19  
20 1 bootstrap Regexp::Copy $VERSION;
21  
22 1 ▶sub re_copy {
Subroutine re_copy: called CC=4 SCAR=16.9
Pod documented
23 1 for (@_) {
24 2 ▶ if (uc(ref($_)) eq ref($_) && !$_->isa('Regexp')) {
Branch: 1 branch
BranchTrueFalseTotal
if (uc ref $_ eq ref $_ and not $_->isa("Regexp")) 0 2 2
Condition33%1/3
uc ref $_ eq ref $_ and not $_->isa("Regexp")
!ll&&!rl&&r
200
MC/DC0%0/2
uc ref $_ eq ref $_ and not $_->isa("Regexp")
uc ref $_ eq ref $_ not $_->isa("Regexp")
Truth table33%1/3
A and not(B)
A= uc ref $_ eq ref $_B= not $_->isa("Regexp")
ABresult
0X0
100
111
25 0 Carp::croak "parameters to re_copy must be blessed and isa(Regexp)";
26 }
27 }
28 1 re_copy_xs(@_);
29 }
30  
31  
32 1 1;
33  
34 __END__
« blib/lib/Regexp/Storable.pm ↑ Summary Copy.xs »