Test::Able::Role(3)
π Test::Able::Role π
okay bestie, so this manual page is Test::Able::Role(3) from the User Contributed Perl Documentation and it's literally the cutest little role for your tests. periodt. π
β¨ NAME β¨
Test::Able::Role -The Test::Able Role
πΈ SYNOPSIS πΈ
package MyTest::SomeRole;
use Test::Able::Role;
test some_test => sub {};
π¦ DESCRIPTION π¦
This is the Test::Able Role. It is an extension of Moose::Role in the same way as Test::Able is an extension of Moose for the purpose of handling test-related methods. slay. π
π EXPORTED FUNCTIONS π
In addition to exporting for Moose::Role, Test::Able::Role will export a handful of functions that can be used to declare test-related methods. These functions are the same functions that Test::Able exports. no cap. β¨
π« startup/setup/test/teardown/shutdown π«
A more Moose-like way to do method declaration. The syntax is similar to has in Moose except its for test-related methods. π
These start with one of startup/setup/test/teardown/shutdown depending on what type of method you are defining. Then comes any attribute name/value pairs to set in the Test::Able::Role::Meta::Method-based mehod metaclass object. The last pair must always be the method name and the coderef. This is to disambiguate between the method name/code pair and any another attribute in the method metaclass that happens to take a coderef. See the synopsis or the tests for examples. π§
π«Ά AUTHOR π«Ά
Justin DeVuyst, "justin@devuyst.com" β iconic. π
π COPYRIGHT AND LICENSE π
Copyright 2009 by Justin DeVuyst.
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
And finally, mwah π this was perl v5.42.0 on 2025-07-25, for Test::Able::Role(3). bye bestie! πβ¨
π¦ where this page comes from
- fedora 43: perl-Test-Able 0.11-41.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms