File: 00-compile.t

package info (click to toggle)
libemail-foldertype-perl 0.814-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 220 kB
  • sloc: perl: 96; makefile: 2
file content (43 lines) | stat: -rw-r--r-- 705 bytes parent folder | download
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
use strict;
use warnings;

# This test was generated via Dist::Zilla::Plugin::Test::Compile 2.014

use Test::More 0.88;



use Capture::Tiny qw{ capture };

my @module_files = qw(
Email/FolderType.pm
Email/FolderType/Ezmlm.pm
Email/FolderType/MH.pm
Email/FolderType/Maildir.pm
Email/FolderType/Mbox.pm
);

my @scripts = qw(

);

# no fake home requested

my @warnings;
for my $lib (@module_files)
{
    my ($stdout, $stderr, $exit) = capture {
        system($^X, '-Mblib', '-e', qq{require qq[$lib]});
    };
    is($?, 0, "$lib loaded ok");
    warn $stderr if $stderr;
    push @warnings, $stderr if $stderr;
}

is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING};





done_testing;