File: 02-moose.t

package info (click to toggle)
libmoox-configfromfile-perl 0.009-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 292 kB
  • sloc: perl: 879; sh: 6; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 662 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
21
22
23
24
25
26
27
28
#!perl

use 5.008001;

use strict;
use warnings FATAL => 'all';

use Test::More;

BEGIN
{
    eval "use Moose;";
    $@ and plan skip_all => "Moose test requires Moose being installed";
}

our $OO = "Moose";
$ENV{WHICH_MOODEL} = "Moose";

unshift @INC, "." unless grep { "." eq $_ } @INC;

ok(do 't/testerr.pm', "do 't/testerr.pm'");
ok(do 't/testlib.pm', "do 't/testlib.pm'");
$@ and diag($@);
eval "use MooX::Cmd 0.012; 1" and ok(do 't/testmxcmd.pm', "do 't/testmxcmd.pm'");
eval "{package MooX::ConfigFromFile::Test::Availability::Of::MooX::Options; use Moo; use MooX::Options 4.001; }; 1"
  and ok(do 't/testmxopt.pm', "do 't/testmxopt.pm'");

done_testing;