Skip to content

Commit fb4fea9

Browse files
authored
Merge pull request #359 from libwww-perl/oalders/perlimports
Apply perlimports to tests
2 parents fe38022 + c65cad7 commit fb4fea9

File tree

5 files changed

+30
-5
lines changed

5 files changed

+30
-5
lines changed

perlimports.toml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Valid log levels are:
2+
# debug, info, notice, warning, error, critical, alert, emergency
3+
# critical, alert and emergency are not currently used.
4+
#
5+
# Please use boolean values in this config file. Negated options (--no-*) are
6+
# not permitted here. Explicitly set options to true or false.
7+
#
8+
# Some of these values deviate from the regular perlimports defaults. In
9+
# particular, you're encouraged to leave preserve_duplicates and
10+
# preserve_unused disabled.
11+
12+
cache = false # setting this to true is currently discouraged
13+
ignore_modules = ["Test::More"]
14+
ignore_modules_filename = ""
15+
ignore_modules_pattern = "" # regex like "^(Foo|Foo::Bar)"
16+
ignore_modules_pattern_filename = ""
17+
libs = ["lib", "t", "t/local"]
18+
log_filename = ""
19+
log_level = "warn"
20+
never_export_modules = []
21+
never_export_modules_filename = ""
22+
padding = true
23+
preserve_duplicates = false
24+
preserve_unused = false
25+
tidy_whitespace = true

t/file_upload.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use strict;
22
use warnings;
33
use Test::More;
44
use Test::Exception;
5-
use WWW::Mechanize;
6-
use URI::file;
5+
use WWW::Mechanize ();
6+
use URI::file ();
77

88
my $file = 't/file_upload.html';
99
my $filename = 'the_file_upload.html';

t/form_with_fields.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use strict;
55
use Test::More 'no_plan';
66
use Test::Fatal qw( exception );
77
use Test::Warnings ':all';
8-
use Test::Deep qw( cmp_deeply re array_each code );
8+
use Test::Deep qw( array_each cmp_deeply code re );
99
use URI::file ();
1010

1111
BEGIN {

t/mech-dump/file_not_found.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use warnings;
44
use strict;
55

66
use Test::More;
7-
use Test::Output qw(output_like);
7+
use Test::Output qw( output_like );
88
use File::Spec ();
99

1010
# See https://stackoverflow.com/a/32054866/1331451

xt/author/live/wikipedia.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use WWW::Mechanize ();
1313
use lib 't';
1414

1515
BEGIN {
16-
use Tools;
16+
use Tools qw( $canTMC memory_cycle_ok );
1717
}
1818

1919
my $mech = WWW::Mechanize->new;

0 commit comments

Comments
 (0)