1Test::Able::Role(3)   User Contributed Perl Documentation  Test::Able::Role(3)
2
3
4

NAME

6       Test::Able::Role -The Test::Able Role
7

SYNOPSIS

9        package MyTest::SomeRole;
10
11        use Test::Able::Role;
12
13        test some_test => sub {};
14

DESCRIPTION

16       This is the Test::Able Role.  It is an extension of Moose::Role in the
17       same way as Test::Able is an extension of Moose for the purpose of
18       handling test-related methods.
19

EXPORTED FUNCTIONS

21       In addition to exporting for Moose::Role, Test::Able::Role will export
22       a handful of functions that can be used to declare test-related
23       methods.  These functions are the same functions that Test::Able
24       exports.
25
26       startup/setup/test/teardown/shutdown
27           A more Moose-like way to do method declaration.  The syntax is
28           similar to "has" in Moose except its for test-related methods.
29
30           These start with one of startup/setup/test/teardown/shutdown
31           depending on what type of method you are defining.  Then comes any
32           attribute name/value pairs to set in the
33           Test::Able::Role::Meta::Method-based mehod metaclass object.  The
34           last pair must always be the method name and the coderef.  This is
35           to disambiguate between the method name/code pair and any another
36           attribute in the method metaclass that happens to take a coderef.
37           See the synopsis or the tests for examples.
38

AUTHOR

40       Justin DeVuyst, "justin@devuyst.com"
41
43       Copyright 2009 by Justin DeVuyst.
44
45       This library is free software, you can redistribute it and/or modify it
46       under the same terms as Perl itself.
47
48
49
50perl v5.36.0                      2022-07-22               Test::Able::Role(3)
Impressum