Test2::...c::Util(3)

πŸ“¦
version 0.08 Β· 2 versions
, in fedora 43

πŸ’– 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. πŸ‘‘


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