NAME

Test::Builder2::Mouse::Spec - To what extent Mouse is compatible with Moose

VERSION

This document describes Mouse version 0.64

SYNOPSIS

use Test::Builder2::Mouse::Spec;

printf "Test/Builder2/Mouse/%s is compatible with Moose/%s\n",
    Test::Builder2::Mouse::Spec->MouseVersion, Test::Builder2::Mouse::Spec->MooseVersion;

DESCRIPTION

Mouse is a subset of Moose. This document describes to what extend Mouse is compatible with Moose.

Compatibility with Moose

The sugary API is highly compatible with Moose.

Incompatibility with Moose

Meta object protocols

Any MOP in Mouse has no attributes by default.

For this reason, $metaclass->meta->make_immutable() does not yet work as you expect. Don not make metaclasses immutable.

Test::Builder2::Mouse::Meta::Instance

Meta instance mechanism is not implemented.

Role exclusion

Role exclusion, exclude(), is not implemented.

-metaclass in Test::Builder2::Mouse::Exporter

use Test::Builder2::Mouse -metaclass => ... are not implemented. Use use Test::Builder2::Mouse -traits => ... instead.

Test::Builder2::Mouse::Meta::Attribute::Native

Native traits are not supported directly, but MouseX::NativeTraits is available on CPAN. Once you have installed it, you can use it as the same way in Moose. That is, native traits are automatically loaded by Mouse.

See MouseX::NativeTraits for details.

Notes about Moose::Cookbook

Many recipes in Moose::Cookbook fit Mouse, including:

SEE ALSO

Mouse

Moose

Moose::Manual

Moose::Cookbook