File Coverage

lib/ExtUtils/MakeMaker/Config.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package ExtUtils::MakeMaker::Config;
2              
3 54     54   143080 use strict;
  54         132  
  54         1663  
4 54     54   283 use warnings;
  54         101  
  54         4542  
5              
6             our $VERSION = '7.70';
7             $VERSION =~ tr/_//d;
8              
9 54     54   390 use Config ();
  54         150  
  54         3088  
10              
11             # Give us an overridable config.
12             our %Config = %Config::Config;
13              
14             sub import {
15 278     278   6619 my $caller = caller;
16              
17 54     54   370 no strict 'refs'; ## no critic
  54         160  
  54         4083  
18 278         935 *{$caller.'::Config'} = \%Config;
  278         379452  
19             }
20              
21             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