/usr/local/lib/perl5/5.44.0/x86_64-linux/Config.pm

filter: Statementstmt 0.0% 0 / 16 Branchbran 0.0% 0 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 30 CC 7 SCAR 32.8
CC
7
Cov
0%
import
42.0
FETCH
6.0
TIEHASH
2.0
CRAP 26.7
« lib/Skilletor/Engine.pm ↑ Summary /usr/local/lib/perl5/5.44.0/CPAN/Meta/Requirements/Range.pm »
1 # This file was created by configpm when Perl was built. Any changes
2 # made to this file will be lost the next time perl is built.
3  
4 # for a description of the variables, please have a look at the
5 # Glossary file, as written in the Porting folder, or use the url:
6 # https://github.com/Perl/perl5/blob/blead/Porting/Glossary
7  
8 package Config;
9 use strict;
10 use warnings;
11 our ( %Config, $VERSION );
12  
13 $VERSION = "5.044000";
14  
15 # Skip @Config::EXPORT because it only contains %Config, which we special
16 # case below as it's not a function. @Config::EXPORT won't change in the
17 # lifetime of Perl 5.
18 my %Export_Cache = (myconfig => 1, config_sh => 1, config_vars => 1,
19 config_re => 1, compile_date => 1, local_patches => 1,
20 bincompat_options => 1, non_bincompat_options => 1,
21 header_files => 1);
22  
23 @Config::EXPORT = qw(%Config);
24 @Config::EXPORT_OK = keys %Export_Cache;
25  
26 # Need to stub all the functions to make code such as print Config::config_sh
27 # keep working
28  
29 sub bincompat_options;
30 sub compile_date;
31 sub config_re;
32 sub config_sh;
33 sub config_vars;
34 sub header_files;
35 sub local_patches;
36 sub myconfig;
37 sub non_bincompat_options;
38  
39 # Define our own import method to avoid pulling in the full Exporter:
40 sub import {
41 0 ▶ shift;
Subroutine import: not called CC=6 SCAR=37.4
42 0 ▶ @_ = @Config::EXPORT unless @_;
Branch: 1 branch
BranchTrueFalseTotal
unless @_ 0 0 0
43  
44 0 my @funcs = grep $_ ne '%Config', @_;
45 0 ▶ my $export_Config = @funcs < @_ ? 1 : 0;
Branch: 1 branch
BranchTrueFalseTotal
@funcs < @_ ? : 0 0 0
46  
47 no strict 'refs';
48 0 my $callpkg = caller(0);
49 0 foreach my $func (@funcs) {
50 die qq{"$func" is not exported by the Config module\n}
51 0 ▶ unless $Export_Cache{$func};
Branch: 1 branch
BranchTrueFalseTotal
unless $Export_Cache{$func} 0 0 0
52 0 *{$callpkg.'::'.$func} = \&{$func};
53 }
54  
55 0 ▶ *{"$callpkg\::Config"} = \%Config if $export_Config;
Branch: 1 branch
BranchTrueFalseTotal
if $export_Config 0 0 0
56 0 return;
57 }
58  
59 die "$0: Perl lib version (5.44.0) doesn't match executable '$^X' version ($])"
60 unless $^V;
61  
62 $^V eq 5.44.0
63 or die sprintf "%s: Perl lib version (5.44.0) doesn't match executable '$^X' version (%vd)", $0, $^V;
64  
65  
66 sub FETCH {
67 0 ▶ my($self, $key) = @_;
Subroutine FETCH: not called CC=2 SCAR=17.9
68  
69 # check for cached value (which may be undef so we use exists not defined)
70 0 ▶ return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key);
Branch: 1 branch
BranchTrueFalseTotal
exists $self->{$key} ? : 0 0 0
71 }
72  
73 sub TIEHASH {
74 0 ▶ bless $_[1], $_[0];
Subroutine TIEHASH: not called CC=1 SCAR=6.9
75 }
76  
77 0 ▶sub DESTROY { }
Subroutine DESTROY: not called CC=1 SCAR=0.0
78  
79 sub AUTOLOAD {
80 require 'Config_heavy.pl';
81 goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
82 die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
83 }
84  
85 # tie returns the object, so the value returned to require will be true.
86 tie %Config, 'Config', {
87 archlibexp => '/usr/local/lib/perl5/5.44.0/x86_64-linux',
88 archname => 'x86_64-linux',
89 cc => 'cc',
90 d_readlink => 'define',
91 d_symlink => 'define',
92 dlext => 'so',
93 dlsrc => 'dl_dlopen.xs',
94 dont_use_nlink => undef,
95 exe_ext => '',
96 inc_version_list => ' ',
97 intsize => '4',
98 ldlibpthname => 'LD_LIBRARY_PATH',
99 libpth => '/usr/local/lib /usr/lib/x86_64-linux-gnu /usr/lib /usr/lib64',
100 osname => 'linux',
101 osvers => '6.8.0-111-generic',
102 path_sep => ':',
103 privlibexp => '/usr/local/lib/perl5/5.44.0',
104 scriptdir => '/usr/local/bin',
105 sitearchexp => '/usr/local/lib/perl5/site_perl/5.44.0/x86_64-linux',
106 sitelibexp => '/usr/local/lib/perl5/site_perl/5.44.0',
107 so => 'so',
108 useithreads => undef,
109 usevendorprefix => undef,
110 version => '5.44.0',
111 };
« lib/Skilletor/Engine.pm ↑ Summary /usr/local/lib/perl5/5.44.0/CPAN/Meta/Requirements/Range.pm »