Test2::...:Target(3)
π NAME π
okay bestie, this is the manpage for Test2::...:Target(3) from the User Contributed Perl Documentation, and the module it's serving is Test2::Tools::Target β the alias-the-testing-target-package helper. π
β¨ DESCRIPTION β¨
So the whole point: this lets you alias the package you're testing into a constant and a package variable. That's the vibe. No cap. π¦
π SYNOPSIS π
First way β just pass the package name directly:
use Test2::Tools::Target 'Some::Package';
CLASS()->xxx; # Call 'xxx' on Some::Package
$CLASS->xxx; # Same
Or you can specify names:
use Test2::Tools::Target pkg => 'Some::Package';
pkg()->xxx; # Call 'xxx' on Some::Package
$pkg->xxx; # Same
π SOURCE π
The source code repository for Test2-Suite can be found at https://github.com/Test-More/test-more/. π«Ά
π MAINTAINERS π
Chad Granum <exodist@cpan.org>π
πΈ AUTHORS πΈ
Chad Granum <exodist@cpan.org>πΈ
π¦ COPYRIGHT π¦
Copyright Chad Granum <exodist@cpan.org>.
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/
later, bestie π«Ά β this page is from perl v5.42.0, dated 2025-07-28, and it's the Test2::...:Target(3) manpage. periodt. π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-Simple 1.302214-bp160.1.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms