Skip to content

Commit

Permalink
Tighten notab/eol checks even more
Browse files Browse the repository at this point in the history
  • Loading branch information
ribasushi committed Dec 19, 2012
1 parent 7c0072b commit 331886e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion xt/eol.t
Expand Up @@ -15,10 +15,13 @@ unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_eol') ) {
}

# FIXME - temporary workaround for RT#82032
# also add all scripts (no extension) and some extra extensions
# we want to check
{
no warnings 'redefine';

*Test::EOL::_is_perl_module = sub {
$_[0] =~ /\.(?:pm|pod)$/i || $_[0] =~ /::/;
$_[0] !~ /\./ || $_[0] =~ /\.(?:pm|pod|skip|json|proto)$/i || $_[0] =~ /::/;
}
}

Expand Down
7 changes: 5 additions & 2 deletions xt/notabs.t
Expand Up @@ -15,10 +15,13 @@ unless ( DBIx::Class::Optional::Dependencies->req_ok_for ('test_notabs') ) {
}

# FIXME - temporary workaround for RT#82033
# also add all scripts (no extension) and some extra extensions
# we want to check
{
no warnings 'redefine';
*Test::NoTabs::_is_perl_module = sub {
$_[0] =~ /\.(?:pm|pod)$/i || $_[0] =~ /::/;

*Test::EOL::_is_perl_module = sub {
$_[0] !~ /\./ || $_[0] =~ /\.(?:pm|pod|skip|json|proto)$/i || $_[0] =~ /::/;
}
}

Expand Down

0 comments on commit 331886e

Please sign in to comment.