NAME
Test::MethodName - test method name
SYNOPSIS
use Test::MethodName;
method_ok(
$module => sub {
my $method = shift;
return ( $method =~ m!check! ) ? undef : 'pass';
},
);
# or check methods in all modules
all_methods_ok(
'MyApp' => sub {
my $method = shift;
return ( $method =~ m!check! ) ? undef : 'pass';
},
except => [
'MyApp::Foo',
qr/MyApp::Bar::.*/,
],
);
DESCRIPTION
Test::MethodName can define prohibited rules for method name.
METHODS
method_ok($module => sub { 'ok' })
all_methods_ok($search_path => sub { 'ok' })
REPOSITORY
Test::MethodName is hosted on github <http://github.com/bayashi/Test-MethodName>
AUTHOR
Dai Okabayashi <bayashi@cpan.org>
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.