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 π
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
- ubuntu stonking: libtest2-harness-perl 1.000172-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