File: Basic.t

package info (click to toggle)
libcode-tidyall-perl 0.78~ds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,048 kB
  • sloc: perl: 5,061; lisp: 47; sh: 4; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 500 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl

use strict;
use warnings;

use lib::relative 'lib';

use Config;
use File::Spec;

# We need to make sure that t/lib is seen across forks _and_ we want to make
# sure that the paths are absolute because Code::TidyAll may chdir while
# running.
$ENV{PERL5LIB} = join(
    $Config{path_sep},
    File::Spec->rel2abs('./t/lib'),
    split(
        $Config{path_sep},
        ( $ENV{PERL5LIB} || q{} )
    )
);

use TestFor::Code::TidyAll::Basic;
TestFor::Code::TidyAll::Basic->runtests;