4 use Moose::Util qw/can_role/;
10 our $VERSION = '0.01';
12 our $AUTHORITY = 'cpan:BERLE';
14 our @EXPORT = qw/can_role/;
16 my $tester = Test::Builder->new;
24 $tester->exported_to ($package);
31 goto &Exporter::import;
35 my ($class,$does,$name) = @_;
37 return $tester->ok (can_role ($class,$does),$name)
48 Test::Moose - Test functions for Moose specific features
52 use Test::Moose plan => 1;
54 does_ok ($class,$role,"Does $class do $role");
62 does_ok ($class,$role,$name);
64 Tests if a class does a certain role, similar to what isa_ok does for
79 All complex software has bugs lurking in it, and this module is no
80 exception. If you find a bug please either email me, or add the bug
85 Anders Nor Berle E<lt>debolaz@gmail.comE<gt>
87 =head1 COPYRIGHT AND LICENSE
89 Copyright 2007 by Infinity Interactive, Inc.
91 L<http://www.iinteractive.com>
93 This library is free software; you can redistribute it and/or modify
94 it under the same terms as Perl itself.