Test::Able::Role::Meta::Method - Method metarole


Test-Able documentation Contained in the Test-Able distribution.

Index


Code Index:

NAME

Top

Test::Able::Role::Meta::Method - Method metarole

DESCRIPTION

Top

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.

ATTRIBUTES

Top

type

Type of test method. See method_types in Test::Able::Role::Meta::Class for the list.

do_setup

Only relevant for methods of type test. Boolean indicating whether to run the associated setup methods.

do_teardown

Only relevant for methods of type test. Boolean indicating whether to run the associated teardown methods.

order

An integer value used to influence ordering of methods in the method lists. Defaults to 0.

AUTHOR

Top

Justin DeVuyst, justin@devuyst.com

COPYRIGHT AND LICENSE

Top


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;