POD and basic test for is_lazy_build
Shawn M Moore [Fri, 27 Jun 2008 03:29:58 +0000 (03:29 +0000)]
lib/Mouse/Meta/Attribute.pm
t/101-meta-attribute.t

index ed14c49..4791dab 100644 (file)
@@ -370,6 +370,8 @@ installed. Some error checking is done.
 
 =head2 has_builder -> Bool
 
+=head2 is_lazy_build => Bool
+
 =head2 should_auto_deref -> Bool
 
 Informational methods.
index 6986fd4..cef1e3a 100644 (file)
@@ -1,7 +1,7 @@
 #!/usr/bin/env perl
 use strict;
 use warnings;
-use Test::More tests => 9;
+use Test::More tests => 10;
 
 do {
     package Class;
@@ -28,5 +28,6 @@ is($attr->name, 'pawn', 'attribute name');
 is($attr->class, 'Class', 'attached class');
 is($attr->predicate, 'has_pawn', 'predicate');
 is($attr->clearer, 'clear_pawn', 'clearer');
+ok(!$attr->is_lazy_build, "not lazy_build");
 is(ref($attr->default), 'CODE', 'default is a coderef');
 ok($attr->verify_type_constraint(1), 'verify_type_constraint works even without isa');