From: Shawn M Moore Date: Tue, 28 Apr 2009 07:52:01 +0000 (-0400) Subject: More tests X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c3bfce2ffa4e700910db17385dd097b90137b5d7;p=gitmo%2FPerl-Critic-Dynamic-Moose.git More tests --- diff --git a/t/DynamicMoose/ProhibitPublicBuilders.run b/t/DynamicMoose/ProhibitPublicBuilders.run index ceff4ed..4c584ff 100644 --- a/t/DynamicMoose/ProhibitPublicBuilders.run +++ b/t/DynamicMoose/ProhibitPublicBuilders.run @@ -9,3 +9,31 @@ has attr => ( is => 'rw', ); +#----------------------------------------------------------------------------- + +## name Private builder method +## failures 0 +## cut + +package Class; +use Moose; + +has attr => ( + is => 'rw', + builder => '_build_attr', +); + +#----------------------------------------------------------------------------- + +## name Public builder method +## failures 1 +## cut + +package Class; +use Moose; + +has attr => ( + is => 'rw', + builder => 'build_attr', +); +