use strict;
use warnings;
-use Test::More tests => 169;
+use Test::More tests => 181;
use Test::Exception;
BEGIN {
initialize
name
+ namespace
- add_package_symbol get_package_symbol has_package_symbol remove_package_symbol
+ add_package_symbol get_package_symbol has_package_symbol remove_package_symbol
+ list_all_package_symbols remove_package_glob
+
+ _deconstruct_variable_name
);
my @class_mop_module_methods = qw(
has_method get_method add_method remove_method alias_method
get_method_list compute_all_applicable_methods
- find_all_methods_by_name find_next_method_by_name
+ find_method_by_name find_all_methods_by_name find_next_method_by_name
add_before_method_modifier add_after_method_modifier add_around_method_modifier
my @class_mop_package_attributes = (
'$:package',
+ '%:namespace',
);
my @class_mop_module_attributes = (
'... Class::MOP::Class %:attributes\'s a init_arg is :attributes');
ok($class_mop_class_meta->get_attribute('%:attributes')->has_default, '... Class::MOP::Class %:attributes has a default');
-is_deeply($class_mop_class_meta->get_attribute('%:attributes')->default,
+is_deeply($class_mop_class_meta->get_attribute('%:attributes')->default('Foo'),
{},
'... Class::MOP::Class %:attributes\'s a default of {}');