Skip to content

Commit

Permalink
wip!
Browse files Browse the repository at this point in the history
  • Loading branch information
rsrchboy committed Jul 28, 2017
1 parent 4ce7710 commit 63ac948
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/Test/Moose/More.pm
Original file line number Diff line number Diff line change
Expand Up @@ -975,6 +975,16 @@ sub _validate_thing_guts {
### methods...
do { has_method_ok($thing, $_) for @{$args{methods}} }
if exists $args{methods};

METHOD_LOOP:
for my $method (@{Data::OptList::mkopt($args{method} || [])}) {

my ($name, $opts) = @$method;
has_method_ok($thing, $name);
validate_method($thing, $name, $opts)
if !!$opts;
}

do { has_no_method_ok($thing, $_) for @{$args{no_methods}} }
if exists $args{no_methods};

Expand Down

0 comments on commit 63ac948

Please sign in to comment.