X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F014_attribute_introspection.t;h=30af573896b730bbb192bff79a2f514be9fb6faa;hb=3545c727b64808e435c361e061962d14ba5b3f31;hp=390fcc118b826a1a2406cfb4d1b9364ecc4a6f38;hpb=49c93440bd912ed231b8ab8e93a8e9ac7328fdc7;p=gitmo%2FClass-MOP.git diff --git a/t/014_attribute_introspection.t b/t/014_attribute_introspection.t index 390fcc1..30af573 100644 --- a/t/014_attribute_introspection.t +++ b/t/014_attribute_introspection.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 40; +use Test::More tests => 49; use Test::Exception; BEGIN { @@ -30,16 +30,23 @@ BEGIN { has_writer writer has_reader reader has_predicate predicate + has_clearer clearer has_init_arg init_arg - has_default default + has_default default is_default_a_coderef + + slots + get_value + set_value + has_value + clear_value associated_class - attach_to_class detach_from_class + attach_to_class detach_from_class + + accessor_metaclass - generate_accessor_method - generate_reader_method - generate_writer_method - generate_predicate_method + associated_methods + associate_method process_accessors install_accessors @@ -47,8 +54,8 @@ BEGIN { ); is_deeply( - [ sort @methods ], [ sort $meta->get_method_list ], + [ sort @methods ], '... our method list matches'); foreach my $method_name (@methods) { @@ -56,13 +63,13 @@ BEGIN { } my @attributes = qw( - name accessor reader writer predicate - init_arg default associated_class + name accessor reader writer predicate clearer + init_arg default associated_class associated_methods ); is_deeply( - [ sort @attributes ], [ sort $meta->get_attribute_list ], + [ sort @attributes ], '... our attribute list matches'); foreach my $attribute_name (@attributes) {