Test::...ERBOSE(3pm)

πŸ“¦
version 0.002000 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Test::...ERBOSE(3pm) β€” a.k.a. Test::Effects::VERBOSE πŸ’–

okay bestie, pull up a chair πŸŽ€ this is the manpage for Test::Effects::VERBOSE, a tiny little Perl module that flips the default chattiness of Test::Effects on and off β€” and it does it lexically, which is the fancy word for "only in the block of code you're standing in rn". iykyk.


✨ NAME ✨

Test::Effects::VERBOSE β€” set Test::Effects verbosity, but lexically πŸ’…


🌸 VERSION 🌸

this doc describes Test::Effects::VERBOSE version 0.000001. yes girl, one-millionth. it's giving "baby's first version number" 🍼


πŸ¦‹ SYNOPSIS πŸ¦‹

{
    use Test::Effects::VERBOSE;
    # Test::Effects defaults to verbose in this scope

    {
        no Test::Effects::VERBOSE;
        # Test::Effects defaults to non-verbose in this scope
    }

    # Test::Effects still verbose here

}
# Test::Effects reverts to original behaviour here

see how the no only killed the vibe inside its own little block?? and then the outer block got its verbose back like nothing ever happened?? that's the whole point and it's iconic 🌈


πŸ’œ DESCRIPTION πŸ’œ

so, using this module changes the default behaviour of Test::Effects's effects_ok() test. lowkey a big deal.

normally that test reports tersely β€” unless you explicitly tell it otherwise by using VERBOSE(). but if you use this module inside a code block, then effects_ok() defaults to verbose reporting for that block's lexical scope. so it's like, scoped chattiness. main character energy, but local. ✨

⚠️ but heads up bestie β€” if you pass an explicit VERBOSE => $boolean option in any call to "<effects_ok(), that overrides the lexical default. explicit always wins, no cap. 🫢

πŸŽ€ INTERFACE πŸŽ€

use Test::Effects::VERBOSE;

effects_ok defaults to verbose reporting for the rest of the current lexical scope. turn the volume UP πŸ”Š

no Test::Effects::VERBOSE;

effects_ok defaults to non-verbose reporting for the rest of the current lexical scope. shhh 🀫


πŸ’€ DIAGNOSTICS πŸ’€

None. nothing. not a peep. silence is golden, periodt. πŸ’…


🌈 CONFIGURATION AND ENVIRONMENT 🌈

Test::Effects::VERBOSE requires no configuration files and no environment variables. zero setup, zero drama, we love a low-maintenance queen πŸ‘‘


🧚 DEPENDENCIES 🧚

  • requires Perl 5.14 (or better) β€” so, old enough to be vintage, new enough to slay ⭐
  • does not require β€” but is meaningless without β€” the Test::Effects module. like, bestie, this whole thing is a settings knob for that module. without it you're just... a knob with nothing to turn πŸ™ˆ

πŸ“ INCOMPATIBILITIES πŸ“

None reported. no beef, no drama, everybody gets along 🫢


😭 BUGS AND LIMITATIONS 😭

No bugs have been reported. flawless behaviour (allegedly πŸ‘€).

please report any bugs or feature requests to bug-lib-test-effects@rt.cpan.org, or through the web interface at http://rt.cpan.org. we do read them, fr fr πŸ’–


πŸ‘‘ AUTHOR πŸ‘‘

Damian Conway "<DCONWAY@cpan.org>" β€” the icon, the moment, the legend πŸ’…βœ¨


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 ALL CAPS because it's serious, not because I'm yelling at you. read it. it matters. 🫢

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.


that's the whole page bestie πŸ¦‹ this one came off the presses as perl v5.36.0 on 2023-07-17, so go forth, scope your verbosity, and stay hydrated πŸ’–βœ¨

πŸ“¦ where this page comes from