Test::...s::ONLY(3pm)
π NAME π
okay so the page you just opened is Test::...s::ONLY(3pm) (the header abbreviates it, it's giving mystery π), and the module inside is Test::Effects::ONLY β it lexically sets Test::Effects verbosity. that's the whole vibe check, bestie. β¨
πΈ VERSION πΈ
this doc is describing Test::Effects::ONLY version 0.000001. tiny number, big energy. π
π¦ SYNOPSIS π¦
{
use Test::Effects::ONLY;
# Test::Effects defaults to only testing specified effects in this scope
{
no Test::Effects::ONLY;
# Test::Effects defaults to testing all effects in this scope
}
# Test::Effects still only testing specified effects here
}
# Test::Effects reverts to original behaviour here
β¨ DESCRIPTION β¨
so like. dropping use Test::Effects::ONLY in changes the default behaviour of Test::Effects's effects_ok() test. that's the tea. π«
normally that test tests all the side-effects β even the ones you didn't specify β unless you explicitly told it otherwise with ONLY(). but if you use this module inside a code block, then for the rest of that block's lexical scope, effects_ok() defaults to only running the tests you actually specified. lowkey iconic, no cap. π
heads up though bestie: an explicitONLY => $booleanoption in any call toeffects_ok()overrides this lexical default. the explicit one always wins, periodt.
π INTERFACE π
use Test::Effects::ONLY;
within the rest of the current lexical scope, effects_ok defaults to only running the tests you specified. slay. β¨
no Test::Effects::ONLY;
within the rest of the current lexical scope, effects_ok defaults to running all tests β including the unspecified ones. back to chaos, we love that for us. π
π DIAGNOSTICS π
none. literally nothing. no drama, no notes. π
βοΈ CONFIGURATION AND ENVIRONMENT βοΈ
Test::Effects::ONLY requires no configuration files or environment variables. it just works. fr fr. π§
π DEPENDENCIES π
- needs Perl 5.14 (or better) π
- does not require the
Test::Effectsmodule β but it is meaningless without it, so like, what are we even doing here without it π
π INCOMPATIBILITIES π
none reported. we're unproblematic. β¨
π BUGS AND LIMITATIONS π
no bugs have been reported. bestie behaviour, honestly. π«Ά
if you find one though, or you want a feature, please report it to bug-lib-test-effects@rt.cpan.org, or through the web interface at <http://rt.cpan.org>. do it, i'm begging. π
π AUTHOR π
Damian Conway <DCONWAY@cpan.org>. main character energy, honestly. β
π LICENCE AND COPYRIGHT π
Copyright (c) 2012, Damian Conway <DCONWAY@cpan.org>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
π¨ DISCLAIMER OF WARRANTY π¨
okay bestie this part is the legal bit and it's in ALL CAPS because it means business. read it, don't skip it, i love you. π
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
and that's the whole page, bestie!! π this lil guy is perl v5.36.0, dated 2023-07-17, and it lives under the name Test::...s::ONLY(3pm). go forth and lexically scope your vibes. π
β¨
π¦ where this page comes from
- debian trixie: libtest-effects-perl 0.002000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtest-effects-perl 0.002000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtest-effects-perl 0.002000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtest-effects-perl 0.002000-1 Β· 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