use Test::Requires in tests
[gitmo/Class-MOP.git] / xt / author / tabs.t
1 #!/usr/bin/perl
2
3 use strict;
4 use warnings;
5
6 use Test::More;
7
8 use Test::Requires {
9     'Test::NoTabs' => '0.8', # skip all if not installed
10 };
11
12 for my $file ( qw( mop.c mop.h ), glob "xs/*xs" ) {
13     notabs_ok( $file, "$file is tab free" );
14 }
15
16 # Module::Install has tabs, so we can't check 'inc' or ideally '.'
17 all_perl_files_ok('lib', 't', 'xt');