File: 001use.t

package info (click to toggle)
libmail-message-perl 3.017-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,632 kB
  • sloc: perl: 11,156; makefile: 4
file content (89 lines) | stat: -rw-r--r-- 3,344 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/usr/bin/env perl

use warnings;
use strict;

use Test::More tests => 52;

# The versions of the following packages are reported to help understanding
# the environment in which the tests are run.  This is certainly not a
# full list of all installed modules.
my @show_versions =
 qw/Mail::Box
    Mail::Box::Manager
    Mail::Transfer
   /;

foreach my $package (@show_versions)
{   eval "require $package";

    no strict 'refs';
    my $report
      = !$@    ? "version ". (${"$package\::VERSION"} || 'unknown')
      : $@ =~ m/^Can't locate/ ? "not installed"
      : "reports error";

    warn "$package $report\n";
}

require_ok('Mail::Box::FastScalar');
require_ok('Mail::Box::Parser');
require_ok('Mail::Box::Parser::Perl');
require_ok('Mail::Message::Body::Construct');
require_ok('Mail::Message::Body::Encode');
require_ok('Mail::Message::Body::File');
require_ok('Mail::Message::Body::Lines');
require_ok('Mail::Message::Body::Multipart');
require_ok('Mail::Message::Body::Nested');
require_ok('Mail::Message::Body');
require_ok('Mail::Message::Body::String');
require_ok('Mail::Message::Construct::Bounce');
require_ok('Mail::Message::Construct::Build');
require_ok('Mail::Message::Construct::Forward');
require_ok('Mail::Message::Construct');
require_ok('Mail::Message::Construct::Read');
require_ok('Mail::Message::Construct::Rebuild');
require_ok('Mail::Message::Construct::Reply');
require_ok('Mail::Message::Construct::Text');
require_ok('Mail::Message::Convert');
require_ok('Mail::Message::Field::Addresses');
require_ok('Mail::Message::Field::Address');
require_ok('Mail::Message::Field::AddrGroup');
require_ok('Mail::Message::Field::Attribute');
require_ok('Mail::Message::Field::AuthResults');
require_ok('Mail::Message::Field::Date');
require_ok('Mail::Message::Field::Fast');
require_ok('Mail::Message::Field::Flex');
require_ok('Mail::Message::Field::Full');
require_ok('Mail::Message::Field');
require_ok('Mail::Message::Field::Structured');
require_ok('Mail::Message::Field::Unstructured');
require_ok('Mail::Message::Field::URIs');
require_ok('Mail::Message::Head::Complete');
require_ok('Mail::Message::Head::FieldGroup');
require_ok('Mail::Message::Head::ListGroup');
require_ok('Mail::Message::Head::Partial');
require_ok('Mail::Message::Head');
require_ok('Mail::Message::Head::ResentGroup');
require_ok('Mail::Message::Head::SpamGroup');
require_ok('Mail::Message::Part');
require_ok('Mail::Message');
require_ok('Mail::Message::Replace::MailHeader');
require_ok('Mail::Message::Replace::MailInternet');
require_ok('Mail::Message::Test');
require_ok('Mail::Message::TransferEnc::Base64');
require_ok('Mail::Message::TransferEnc::Binary');
require_ok('Mail::Message::TransferEnc::EightBit');
require_ok('Mail::Message::TransferEnc');
require_ok('Mail::Message::TransferEnc::QuotedPrint');
require_ok('Mail::Message::TransferEnc::SevenBit');
require_ok('Mail::Reporter');

# The following modules only compile when optional modules are installed
#require_ok('Mail::Message::Convert::EmailSimple');
#require_ok('Mail::Message::Convert::HtmlFormatPS');
#require_ok('Mail::Message::Convert::HtmlFormatText');
#require_ok('Mail::Message::Convert::Html');
#require_ok('Mail::Message::Convert::MailInternet');
#require_ok('Mail::Message::Convert::MimeEntity');
#require_ok('Mail::Message::Convert::TextAutoformat');