| Test-Able documentation | Contained in the Test-Able distribution. |
Test::Able::Role::Meta::Method - Method metarole
This metarole gets applied to the Moose::Meta::Method metaclass objects that represent methods in a Test::Able-based class or role. This metarole also pulls in Test::Able::Planner.
Type of test method. See method_types in Test::Able::Role::Meta::Class for the list.
Only relevant for methods of type test. Boolean indicating whether to run the associated setup methods.
Only relevant for methods of type test. Boolean indicating whether to run the associated teardown methods.
An integer value used to influence ordering of methods in the method lists. Defaults to 0.
Justin DeVuyst, justin@devuyst.com
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.
| Test-Able documentation | Contained in the Test-Able distribution. |
package Test::Able::Role::Meta::Method; use Moose::Role; use strict; use warnings; with qw( Test::Able::Planner );
has 'type' => ( is => 'rw', isa => 'Str|Undef', );
has 'do_setup' => ( is => 'rw', isa => 'Bool', lazy_build => 1, );
has 'do_teardown' => ( is => 'rw', isa => 'Bool', lazy_build => 1, );
has 'order' => ( is => 'rw', isa => 'Int', lazy_build => 1, ); sub _build_do_setup { return 1; } sub _build_do_teardown { return 1; } sub _build_plan { return 0; } sub _build_order { return 0; }
1;