Test2::...:Module(3)
okay so welcome to the User Contributed Perl Documentation page for Test2::Require::Module(3) β the header files it under the extra-truncated Test2::...:Module(3) label, but bestie, the actual module is Test2::Require::Module. Weβre skipping tests when packages arenβt installed or versions are too low, and weβre doing it with main character energy. π
β¨
πΈ NAME πΈ
Test2::Require::Module β skip tests if certain packages are not installed, or insufficient versions. π¦
π DESCRIPTION π
Sometimes you have tests that are nice to run, but depend on tools that may not be available. Instead of adding the tool as a dep, or making the test always skip, it is common to make the test run conditionally. This package helps make that possible. π
This module is modeled after Test::Requires. The difference is that this module is based on Test2 directly, and does not go through Test::Builder. Another difference is that the packages you check for are not imported into your namespace for you. This is intentional. Periodt. π
β¨ SYNOPSIS β¨
hereβs the whole vibe, bestie:
# The test will be skipped unless Some::Module is installed, any version.
use Test2::Require::Module 'Some::Module';
# The test will be skipped unless 'Other::Module' is installed and at
# version '5.555' or greater.
use Test2::Require::Module 'Other::Module' => '5.555';
# We now need to use them directly, Test2::Require::Module does not import
# them for us.
use Some::Module;
use Other::Module;
π 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/
okay thatβs the whole page! π«Ά signed off with perl v5.42.0, dated 2025-07-28, and the footer label is Test2::...:Module(3). love that for us. πβ¨
π¦ 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