blib/lib/Digest/MD5/M4p.pm

filter: Statementstmt 70.5% 24 / 34 Branchbran 33.3% 2 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 65.9% 29 / 44 SCAR 0.4
CC
1
Cov
65%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary M4p.xs »
1 package Digest::MD5::M4p;
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 1 ▶use vars qw($VERSION @ISA @EXPORT_OK);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 $VERSION = '0.01';
7  
8 1 require Exporter;
9 1 *import = \&Exporter::import;
10 1 @EXPORT_OK = qw(md5 md5_hex md5_base64);
11  
12 1 require DynaLoader;
13 1 @ISA=qw(DynaLoader);
14  
15 1 eval {
16 1 require Digest::base;
17 1 push(@ISA, 'Digest::base');
18 };
19 1 ▶if ($@) {
Branch: 1 branch
BranchTrueFalseTotal
if ($@) 0 1 1
20 0 my $err = $@;
21 0 ▶ *add_bits = sub { die $err };
Subroutine __ANON__: not called CC=1 SCAR=6.9
22 }
23  
24  
25 1 eval {
26 1 Digest::MD5::M4p->bootstrap($VERSION);
27 };
28 1 ▶if ($@) {
Branch: 1 branch
BranchTrueFalseTotal
if ($@) { } 0 1 1
29 0 my $olderr = $@;
30 0 eval {
31 # Try to load the pure perl version which does not exist so far
32 0 require Digest::Perl::MD5::M4p;
33  
34 0 Digest::Perl::MD5::M4p->import(qw(md5 md5_hex md5_base64));
35 0 push(@ISA, "Digest::Perl::MD5"); # make OO interface work
36 };
37 0 ▶ if ($@) {
Branch: 1 branch
BranchTrueFalseTotal
if ($@) 0 0 0
38 # restore the original error
39 0 die $olderr;
40 }
41 }
42 else {
43 1 *reset = \&new;
44 }
45  
46 1 1;
47 __END__
↑ Summary M4p.xs »