]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - t/lib/VPIT/TestHelpers.pm
Update VPIT::TestHelpers to 0bb3aa5
[perl/modules/indirect.git] / t / lib / VPIT / TestHelpers.pm
index 10550eec28c139e43612a455205230900984c994..aeabc166c72663b1e1c7e926591e3b89d4f5de0b 100644 (file)
@@ -97,7 +97,9 @@ my $test_sub = sub {
  }
 
  my $glob = $stash->{$sub};
- return $glob ? *$glob{CODE} : undef;
+ return ref \$glob eq 'GLOB' ? *$glob{CODE}
+      : ref  $glob eq 'CODE' ?  $glob
+      :                          undef;
 };
 
 sub skip { $test_sub->('skip')->(@_) }
@@ -835,11 +837,11 @@ sub DESTROY { $_[0]->{code}->() }
 
 =head1 AUTHOR
 
-Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
+Vincent Pit C<< <vpit at cpan.org> >>.
 
 =head1 COPYRIGHT & LICENSE
 
-Copyright 2012,2013,2014,2015 Vincent Pit, all rights reserved.
+Copyright 2012,2013,2014,2015,2019 Vincent Pit, all rights reserved.
 
 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.