blib/lib/Crypt/MySQL.pm

filter: Statementstmt 85.7% 18 / 21 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 82.7% 24 / 29 CC 2 SCAR 3.2
CC
2
Cov
83%
BEGIN
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
↑ Summary lib/Crypt/MySQL.xs »
1 package Crypt::MySQL;
2  
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use vars qw($VERSION @ISA @EXPORT_OK);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use Digest::SHA1 qw(sha1 sha1_hex);
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 ▶BEGIN {
Subroutine BEGIN: called CC=2 SCAR=7.6
8 4 $VERSION = '0.04';
9 4 ▶ if ($] > 5.006) {
Branch: 1 branch
BranchTrueFalseTotal
if ($] > 5.006) { } 4 0 4
10 4 require XSLoader;
11 4 XSLoader::load(__PACKAGE__, $VERSION);
12 } else {
13 0 require DynaLoader;
14 0 @ISA = qw(DynaLoader);
15 0 __PACKAGE__->bootstrap;
16 }
17 4 require Exporter;
18 4 push @ISA, 'Exporter';
19 4 @EXPORT_OK = qw(password password41);
20 }
21  
22 2 ▶sub password41($) { "*".uc(sha1_hex(sha1($_[0]))); }
Subroutine password41: called CC=1 SCAR=0.0
Pod undocumented
23  
24 4 1;
25 __END__
↑ Summary lib/Crypt/MySQL.xs »