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   147587 use strict;
  54         128  
  54         3163  
4 54     54   288 use warnings;
  54         111  
  54         2905  
5              
6             our $VERSION = '7.66';
7             $VERSION =~ tr/_//d;
8              
9 54     54   383 use Config ();
  54         115  
  54         3192  
10              
11             # Give us an overridable config.
12             our %Config = %Config::Config;
13              
14             sub import {
15 278     278   6748 my $caller = caller;
16              
17 54     54   373 no strict 'refs'; ## no critic
  54         125  
  54         4199  
18 278         763 *{$caller.'::Config'} = \%Config;
  278         396305  
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