Test2::...:Target(3)

πŸ“¦ version 1.302214, in opensuse-leap 16.0

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