blib/lib/Crypt/OpenSSL/CA/Inline/C.pm

filter: Statementstmt 100% 21 / 21 Branchbran 75.0% 3 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 96.6% 29 / 30 CC 3 SCAR 6.2
CC
3
Cov
96%
import
3.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.9
« lib/Crypt/OpenSSL/CA/Inline/C.pm ↑ Summary /dev/null »
1 #!perl -w
2  
3 package Crypt::OpenSSL::CA::Inline::C;
4  
5 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 5 ▶use XSLoader;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 295 ▶sub import {
Subroutine import: called CC=3 SCAR=11.0
9 295 my ($class, $stuff) = @_;
10 295 ▶ return if ! defined $stuff;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $stuff 0 295 295
11 295 ▶ return if $stuff eq "__END__";
Branch: 1 branch
BranchTrueFalseTotal
if $stuff eq "__END__" 5 290 295
12  
13 290 my ($package) = caller;
14 5 ▶ no strict "refs";
Subroutine BEGIN: called CC=1 SCAR=0.0
15 290 push @{$package."::ISA"}, qw(XSLoader);
16 5 ▶ { no warnings "redefine"; XSLoader::load($package); }
Subroutine BEGIN: called CC=1 SCAR=0.0
17 }
18  
19 =head1 NAME
20  
21 Crypt::OpenSSL::CA::Inline::C - The Inline magic (or lack thereof) for
22 Crypt::OpenSSL::CA
23  
24 =head1 SYNOPSIS
25  
26 use Crypt::OpenSSL::CA::Inline::C $and_the_rest_is_ignored;
27  
28 # ...
29  
30 use Crypt::OpenSSL::CA::Inline::C "__END__";
31  
32 =head1 DESCRIPTION
33  
34 This package simply loads the DLLs that contain the parts of
35 L<Crypt::OpenSSL::CA> that are made of XS code. It is a stubbed-down
36 version of the full-fledged I<Crypt::OpenSSL::CA::Inline::C> that
37 replaces the real thing at module install time.
38  
39 There is more to I<Crypt::OpenSSL::CA::Inline::C>, such as the ability
40 to dynamically modify and recompile the C code snippets in
41 I<Crypt::OpenSSL::CA>'s code source. But in order to grasp hold of its
42 power, you have to use the full source code tarball and not just the
43 installed version.
44  
45 =cut
46  
47 5 1;
48  
« lib/Crypt/OpenSSL/CA/Inline/C.pm ↑ Summary /dev/null »