lib/ExtUtils/MakeMaker/Config.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/ExtUtils/Liblist.pm ↑ Summary lib/ExtUtils/testlib.pm »
1 package ExtUtils::MakeMaker::Config;
2  
3 98 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 98 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 98 our $VERSION = '7.78';
7 98 $VERSION =~ tr/_//d;
8  
9 98 ▶use Config ();
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 # Give us an overridable config.
12 98 our %Config = %Config::Config;
13  
14 498 ▶sub import {
Subroutine import: called CC=1 SCAR=0.0
15 498 my $caller = caller;
16  
17 98 ▶ no strict 'refs'; ## no critic
Subroutine BEGIN: called CC=1 SCAR=0.0
18 498 *{$caller.'::Config'} = \%Config;
19 }
20  
21 98 1;
22  
23  
24 =head1 NAME
25  
26 ExtUtils::MakeMaker::Config - Wrapper around Config.pm
27  
28  
29 =head1 SYNOPSIS
30  
31 use ExtUtils::MakeMaker::Config;
32 print $Config{installbin}; # or whatever
33  
34  
35 =head1 DESCRIPTION
36  
37 B<FOR INTERNAL USE ONLY>
38  
39 A very thin wrapper around Config.pm so MakeMaker is easier to test.
40  
41 =cut
« lib/ExtUtils/Liblist.pm ↑ Summary lib/ExtUtils/testlib.pm »