GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  TEST::ABLE::ROLE (3)

.ds Aq ’

NAME

Test::Able::Role -The Test::Able Role

CONTENTS

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.

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.
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

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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TEST::ABLE::ROLE (3) 2010-11-21

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.