File: spelling.t

package info (click to toggle)
libdigest-jhash-perl 0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 176 kB
  • ctags: 22
  • sloc: perl: 297; makefile: 3
file content (47 lines) | stat: -rw-r--r-- 680 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
use Test;
use Cwd;
my $ASPELL = "C:\\usr\\Aspell\\bin\\aspell.exe";

#$ENV{RELEASE_TESTING}++;

my $chdir = 0;

if ( cwd() =~ m/t$/ ) {
    chdir "..";
    $chdir++;
}

eval { require Test::Spelling; Test::Spelling->import; };

if ($@) {
    plan tests => 1;
    skip("Test::Spelling not installed; skipping");
}
else {
    if ( $ENV{RELEASE_TESTING} ) {
        set_spell_cmd("$ASPELL -l");
        add_stopwords(<DATA>);
        all_pod_files_spelling_ok('lib');
    }
    else {
        plan tests => 1;
        skip( "Author only private tests" );
    }
}

chdir "t" if $chdir;  # back to t/

__DATA__
CGI
CPAN
GPL
STDIN
STDOUT
DWIM
OO
RTFM
RTFS
James
Freeman
gmail
behaviour