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::MOUSE (3)

.ds Aq ’

NAME

Test::Mouse - Test functions for Mouse specific features

CONTENTS

SYNOPSIS



  use Test::More plan => 1;
  use Test::Mouse;

  meta_ok($class_or_obj, "... Foo has a ->meta");
  does_ok($class_or_obj, $role, "... Foo does the Baz role");
  has_attribute_ok($class_or_obj, $attr_name, "... Foo has the bar attribute");



DESCRIPTION

This module provides some useful test functions for Mouse based classes. It is an experimental first release, so comments and suggestions are very welcome.

EXPORTED FUNCTIONS

<B>meta_ok ($class_or_object)B> Tests if a class or object has a metaclass.
<B>does_ok ($class_or_object, B>$role<B>, ?$message)B> Tests if a class or object does a certain role, similar to what isa_ok does for the isa method.
<B>has_attribute_ok($class_or_object, B>$attr_name<B>, ?$message)B> Tests if a class or object has a certain attribute, similar to what can_ok does for the methods.
<B>with_immutable { CODE } B>@class_names<B>B> Runs CODE *which should contain normal tests) twice, and make each class in @class_names immutable between the two runs.

SEE ALSO

Mouse

Test::Moose

Test::More

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


perl v5.20.3 TEST::MOUSE (3) 2016-03-17

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