unmocked(3pm)
β¨ unmocked β¨
okay so bestie, the module name is literally unmocked and it does exactly one iconic thing: it lets you use real libraries from inside your mocked ones. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
so like, your fake lil mocked module is out here needing an actual real library, and you're like "help":
# Your mocked module needs to use a real library
package Fake::Fun;
use unmocked 'URI';
no cap, that's genuinely all you gotta type. π«Ά
π¦ DESCRIPTION π¦
so here's the tea π β when you're out there mocking modules with mocked, you get this gorgeous guarantee that zero extra "real" libraries are getting loaded behind your back. very demure, very mindful. very safe.
but sometimes?? you do want to use real libraries from within your mocked library. the plot thickens. π
this module is your girl for that exact situation: it lets you load real libraries using your previous include paths. so the stuff mocked took away? it's still reachable if you ask nicely. periodt. π
π FUNCTIONS π
π import
hand it a package name and this function will make sure the module you specified gets loaded from the regular @INC path β y'know, the one that mocked.pm has removed. lowkey the whole point of this module. π₯
π AUTHOR π
Luke Closs, "<cpan at 5thplane.com>" β the icon who made this happen, we stan. π
π LICENSE π
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. fr fr, go wild, it's Perl-licensed. π§
and that's a wrap on unmocked from the User Contributed Perl Documentation, brought to you by perl v5.36.0, dated 2022-12-04 π thanks for coming to my ted talk, mwah π
π¦ where this page comes from
- debian bookworm: libmocked-perl 0.09-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libmocked-perl 0.09-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmocked-perl 0.09-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmocked-perl 0.09-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmocked-perl 0.09-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms