logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

unmocked - use real libraries from within mocked libraries

Author

       Luke Closs, "<cpan at 5thplane.com>"

Description

       When mocking modules using 'mocked', you are certain that no extra "real" libraries are being loaded.
       But sometimes you don't want to use real libraries from within your mocked library.  This module allows
       you to load real libraries using your previous include paths.

Functions

import
       With a package name, this function will ensure that the module you specify is loaded from the regular
       @INC path (that mocked.pm has removed).

License

       This program is free software; you can redistribute it and/or modify it under the same terms as Perl
       itself.

perl v5.36.0                                       2022-12-04                                      unmocked(3pm)

Name

       unmocked - use real libraries from within mocked libraries

Synopsis

         # Your mocked module needs to use a real library
         package Fake::Fun;
         use unmocked 'URI';

See Also