Test2::...c::Util(3)
π Test2::...c::Util π
okay so bestie, this is Test2::Tools::PerlCritic::Util β a lil module of utility functions, living in the Perl manual pages. That's the name, that's the vibe, we move. π
β¨ VERSION β¨
version 0.08 β she's on 0.08, no cap. π
π¦ SYNOPSIS π¦
use Test2::Tools::PerlCritic::Util qw( perl_critic_config_id );
that's it. that's the whole entrance. pull in perl_critic_config_id and you're golden. β¨
πΈ DESCRIPTION πΈ
so this module hands you some utility functions that are genuinely useful when you're out here doing Perl::Critic testing. it's giving helper energy. it's giving "let me make your life easier" energy. π«Ά
π FUNCTIONS π
π perl_critic_config_id
my $id = perl_critic_config_id $config;
my $id = perl_critic_config_id;
bestie. listen. this one computes an id of the Perl::Critic configuration. like, it looks at your config and goes "yes, I know what this is, here's its id." iconic behavior fr fr.
about that $config argument β it should be either an instance of Perl::Critic or an instance of Perl::Critic::Config. either one, she's flexible, she's not gonna fight you on it. π
and if you don't pass anything in at all? no worries, no stress β a default Perl::Critic::Config will be created for you. you literally just call it with nothing and she'll sort herself out. main character energy. β
CAVEAT: okay so this part is important and I need you to actually read it, not just scroll past. π This isn't really possible with 100% accuracy with the Perl::Critic API β like, the API does not hand you a perfect answer, that's just not a thing it can do. So instead, we make some assumptions about common conventions that typically do hold in virtually all cases. "Virtually all" is doing a LOT of heavy lifting in that sentence, so... yeah. just know that. π
π AUTHOR π
Graham Ollis <plicease@cpan.org> β legend, icon, the moment. π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2019-2024 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π
and that's the whole page, bestie!! π¦β¨
this little writeup came to you from perl v5.42.0, dated 2025-07-25, and yeah β the manual title gets shortened to Test2::...c::Util(3) because Perl docs love a mysterious little ellipsis moment. iykyk. π
π
π¦ where this page comes from
- fedora 43: perl-Test2-Tools-PerlCritic 0.08-4.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms