10 my $attr = Class::MOP::Attribute->new('$test');
11 is($attr->meta, Class::MOP::Attribute->meta, '... instance and class both lead to the same meta');
15 my $meta = Class::MOP::Attribute->meta();
16 isa_ok($meta, 'Class::MOP::Class');
22 initialize_instance_slot
23 _set_initial_slot_value
28 has_write_method get_write_method get_write_method_ref
30 has_read_method get_read_method get_read_method_ref
31 has_predicate predicate
35 has_default default is_default_a_coderef
36 has_initializer initializer
37 has_insertion_order insertion_order _set_insertion_order
68 [ sort $meta->get_method_list ],
70 '... our method list matches');
72 foreach my $method_name (@methods) {
73 ok($meta->has_method($method_name), '... Class::MOP::Attribute->has_method(' . $method_name . ')');
94 [ sort $meta->get_attribute_list ],
96 '... our attribute list matches');
98 foreach my $attribute_name (@attributes) {
99 ok($meta->has_attribute($attribute_name), '... Class::MOP::Attribute->has_attribute(' . $attribute_name . ')');
102 # We could add some tests here to make sure that
103 # the attribute have the appropriate
104 # accessor/reader/writer/predicate combinations,
105 # but that is getting a little excessive so I
106 # wont worry about it for now. Maybe if I get
107 # bored I will do it.