1Mock::Config(3)       User Contributed Perl Documentation      Mock::Config(3)
2
3
4

NAME

6       Mock::Config - temporarily set Config or XSConfig values
7

VERSION

9       Version 0.02
10

SYNOPSIS

12       XSConfig is readonly, so workaround that.
13
14           use Mock::Config d_fork => 0, perl_patchlevel => '';
15
16       The importer works only dynamically, not lexically yet.
17
18           use Mock::Config;
19           Mock::Config->import(startperl => '');
20           print $Config{startperl}, ' mocked to empty';
21           Mock::Config->unimport;
22

SUBROUTINES

24   import
25       Set pair of Config values, even for the readonly XSConfig
26       implementation, as used in cperl.
27
28       It does not store the mocked overrides lexically, just dynamically.
29
30   unimport
31       This is unstacked and not lexical.  It undoes all imported Config
32       values at once.
33

AUTHOR

35       Reini Urban, "<rurban at cpan.org>"
36

BUGS

38       Please report any bugs or feature requests at
39       <https://github.com/perl11/Mock-Config/issues>.
40
41       We will be notified, and then you'll automatically be notified of
42       progress on your request as we make changes.
43

SUPPORT

45       You can find documentation for this module with the perldoc command.
46
47           perldoc Mock::Config
48
49       You can also look for information at:
50
51       ·   RT: CPAN's request tracker (report bugs here)
52
53           <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Mock-Config>
54
55       ·   AnnoCPAN: Annotated CPAN documentation
56
57           <http://annocpan.org/dist/Mock-Config>
58
59       ·   CPAN Ratings
60
61           <http://cpanratings.perl.org/d/Mock-Config>
62
63       ·   Search CPAN
64
65           <http://search.cpan.org/dist/Mock-Config/>
66

ACKNOWLEDGEMENTS

69       Copyright 2016 cPanel Inc.
70
71       This program is free software; you can redistribute it and/or modify it
72       under the terms of the the Artistic License (2.0). You may obtain a
73       copy of the full license at:
74
75       <http://www.perlfoundation.org/artistic_license_2_0>
76
77       Any use, modification, and distribution of the Standard or Modified
78       Versions is governed by this Artistic License. By using, modifying or
79       distributing the Package, you accept this license. Do not use, modify,
80       or distribute the Package, if you do not accept this license.
81
82       If your Modified Version has been derived from a Modified Version made
83       by someone other than you, you are nevertheless required to ensure that
84       your Modified Version complies with the requirements of this license.
85
86       This license does not grant you the right to use any trademark, service
87       mark, tradename, or logo of the Copyright Holder.
88
89       This license includes the non-exclusive, worldwide, free-of-charge
90       patent license to make, have made, use, offer to sell, sell, import and
91       otherwise transfer the Package with respect to any patent claims
92       licensable by the Copyright Holder that are necessarily infringed by
93       the Package. If you institute patent litigation (including a cross-
94       claim or counterclaim) against any party alleging that the Package
95       constitutes direct or contributory patent infringement, then this
96       Artistic License to you shall terminate on the date that such
97       litigation is filed.
98
99       Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
100       AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
101       THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
102       PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
103       YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
104       CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
105       CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
106       EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
107
108
109
110perl v5.28.0                      2016-04-18                   Mock::Config(3)
Impressum