New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added HOOKS on before/after calling use_ok method. #1

wants to merge 2 commits into
base: master
Jump to file or symbol
Failed to load files and symbols.
+4 −0
Diff settings


Just for now


added HOOKS on before/after calling use_ok method.

  • Loading branch information...
bayashi committed Dec 26, 2012
commit 542c92fb5c2d59d48141fa126a9c9a2d5c803eba
@@ -13,6 +13,8 @@ our @EXPORT = qw/all_uses_ok/;
sub all_uses_ok {
my %param = @_;
my $pre_hook = (ref($param{pre} ) eq 'CODE');
my $post_hook = (ref($param{post}) eq 'CODE');
my $search_path = $param{search_path};
unless ($search_path) {
Test::More::plan skip_all => 'no search path';
@@ -32,7 +34,9 @@ sub all_uses_ok {
$pre_hook and $param{pre}->($class);
$post_hook and $param{post}->($class);
ProTip! Use n and p to navigate between commits in a pull request.