Resolve a todo to pass pod-coverage-moose
gfx [Mon, 15 Mar 2010 03:21:19 +0000 (12:21 +0900)]
xt/external/lib/Foo.pm
xt/external/pod-coverage-moose.t

index 3fbedeb..0b721df 100644 (file)
@@ -11,6 +11,10 @@ has bar => (
     isa => 'Str',
 );
 
+sub baz { }
+sub qux { }
+
+
 no Mouse;
 __PACKAGE__->meta->make_immutable;
 __END__
@@ -27,4 +31,12 @@ Foo - bar
 
 =back
 
+=head1 METHODS
+
+=over 4
+
+=item baz
+
+=back
+
 =cut
index 4818f91..6490599 100644 (file)
@@ -11,8 +11,6 @@ plan tests => 1;
 # support Pod::Coverage::Moose
 #   https://rt.cpan.org/Ticket/Display.html?id=47744
 
-{
-    local $TODO = 'Not supported';
-    my $cov = Pod::Coverage::Moose->new(package => 'Foo');
-    is $cov->coverage, 0.5;
-}
+my $cov = Pod::Coverage::Moose->new(package => 'Foo');
+is $cov->coverage, 0.5
+    or diag "why unrated? - " . $cov->why_unrated;