Test2:...nstants(3pm)

✨ Test2::Harness::Runner::Constants ✨

okay so bestie, welcome to Test2::Harness::Runner::Constants πŸ’– β€” it lives in the Test2::Harness::Runner family and it's literally just the shared constants drawer. The official vibe is constants shared between multiple runner modules. That's it. That's the whole girl. πŸŽ€


🌸 DESCRIPTION 🌸

It exports some common structures. That's the tea. β˜• Like, the runner modules all needed the same lil data structures and instead of copying them into every file like a chaos gremlin, they live here and everybody imports them. Very collaboration, very community. 🫢


πŸ’… SYNOPSIS πŸ’…

here's the whole flex, copied exactly, no cap:

use Test2::Harness::Runner::Constants qw/CATEGORIES DURATIONS/;

if (CATEGORIES->{$cat}) {
    print "$cat is valid\n";
}
else {
    print "$cat is not valid\n";
}

so you pull in CATEGORIES and DURATIONS with qw/.../, then you deref CATEGORIES β€” it's a hashref, babes β€” and you check if your $cat is a key in there. If it is: "$cat is valid\n". Slay. If it's not: "$cat is not valid\n". Periodt. πŸ’€βœ¨


πŸ”₯ SOURCE πŸ”₯

the source code repository for Test2-Harness can be found at:

http://github.com/Test-More/Test2-Harness/

go be nosy, it's your right πŸ‘‘


πŸ‘‘ MAINTAINERS πŸ‘‘

  • Chad Granum <exodist@cpan.org>

πŸ¦‹ AUTHORS πŸ¦‹

  • Chad Granum <exodist@cpan.org>

(yes bestie, same person in both lists β€” that's the whole roster, one icon carrying the entire lore 🫑)


Copyright 2020 Chad Granum <exodist7@gmail.com>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/


ngl, the license bit is the "please don't be weird about it" clause β€” free software, same terms as Perl itself, and if you wanna read the actual fine print it's at that link up there 🧚

perl v5.40.1 Β· 2026-05-10 β€” that's the version and the date this whole little page was stamped, so shoutout to that build, mwah, bye bestie πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from