The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Test::Builder2::Mouse::Role - The Mouse Role

VERSION

This document describes Mouse version 0.53

SYNOPSIS

    package MyRole;
    use Test::Builder2::Mouse::Role;

KEYWORDS

meta -> Test::Builder2::Mouse::Meta::Role

Returns this role's metaclass instance.

before (method|methods|regexp) -> CodeRef

Sets up a before method modifier. See "before" in Moose.

after (method|methods|regexp) => CodeRef

Sets up an after method modifier. See "after" in Moose.

around (method|methods|regexp) => CodeRef

Sets up an around method modifier. See "around" in Moose.

super

Sets up the super keyword. See "super" in Moose.

override method => CodeRef

Sets up an override method modifier. See "Role/override" in Moose.

inner

This is not supported in roles and emits an error. See "Role" in Moose.

augment method => CodeRef

This is not supported in roles and emits an error. See "Role" in Moose.

has (name|names) => parameters

Sets up an attribute (or if passed an arrayref of names, multiple attributes) to this role. See "Builder2/Mouse/has" in Test.

confess(error) -> BOOM

"confess" in Carp for your convenience.

blessed(value) -> ClassName | undef

"blessed" in Scalar::Util for your convenience.

MISC

import

Importing Test::Builder2::Mouse::Role will give you sugar.

unimport

Please unimport (no Test::Builder2::Mouse::Role) so that if someone calls one of the keywords (such as "has") it will break loudly instead breaking subtly.

SEE ALSO

Moose::Role