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 55     55   82550 use strict;
  55         118  
  55         2634  
4 55     55   374 use warnings;
  55         141  
  55         5134  
5              
6             our $VERSION = '7.78';
7             $VERSION =~ tr/_//d;
8              
9 55     55   437 use Config ();
  55         168  
  55         4217  
10              
11             # Give us an overridable config.
12             our %Config = %Config::Config;
13              
14             sub import {
15 283     283   9633 my $caller = caller;
16              
17 55     55   333 no strict 'refs'; ## no critic
  55         115  
  55         7855  
18 283         4114 *{$caller.'::Config'} = \%Config;
  283         529838  
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
38              
39             A very thin wrapper around Config.pm so MakeMaker is easier to test.
40              
41             =cut