add a basic test for :all
Revision history for MooseX-Types
{{$NEXT}}
+ - Add support for qw( :all ) on MooseX::Types::Combine libraries. (kentnl)
0.29 2011-08-20
- Require namespace::clean 0.19. Tests fail with 0.18. Reported by
my %types = $class->_provided_types;
+ if ( grep { $_ eq ':all' } @types ){
+ $_->import({ -into => $caller }, q{:all} ) for $class->provide_types_from;
+ return;
+ }
+
my %from;
for my $type (@types) {
unless ($types{$type}) {
'cannot combine types from a package which does not exist';
}
+is exception { 'Combined'->import(':all') }, undef, ':all syntax works';
+
done_testing();