blib/lib/Digest/SHA1.pm

filter: Statementstmt 85.7% 18 / 21 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod n/a totaltotal 80.7% 21 / 26 CC 1 SCAR 2.9
CC
1
Cov
83%
__ANON__
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
↑ Summary SHA1.xs »
1 package Digest::SHA1;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use vars qw($VERSION @ISA @EXPORT_OK);
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 $VERSION = '2.13';
7  
8 3 require Exporter;
9 3 *import = \&Exporter::import;
10 3 @EXPORT_OK = qw(sha1 sha1_hex sha1_base64 sha1_transform);
11  
12 3 require DynaLoader;
13 3 @ISA=qw(DynaLoader);
14  
15 3 eval {
16 3 require Digest::base;
17 3 push(@ISA, 'Digest::base');
18 };
19 3 ▶if ($@) {
Branch: 1 branch
BranchTrueFalseTotal
if ($@) 0 3 3
20 0 my $err = $@;
21 0 ▶ *add_bits = sub { die $err };
Subroutine __ANON__: not called CC=1 SCAR=6.9
22 }
23  
24 3 Digest::SHA1->bootstrap($VERSION);
25  
26 3 1;
27 __END__
↑ Summary SHA1.xs »