File: eol.t

package info (click to toggle)
liblingua-en-namecase-perl 1.21-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 168 kB
  • sloc: perl: 455; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use strict;
use warnings;

use Test::Most;

BEGIN {
	if($ENV{AUTHOR_TESTING}) {
		eval {
			require Test::EOL;
		};
		if($@) {
			plan(skip_all => 'Test::EOL not installed');
		} else {
			import Test::EOL;
			all_perl_files_ok({ trailing_whitespace => 1 });
		}
	} else {
		plan(skip_all => 'Author tests not required for installation');
	}
}