Debian Codegraph @

t/moose/moose.t

raw
1 use strict;
2 use warnings;
3 use FindBin;
4 use lib "$FindBin::Bin/../../";
5 use Test::More;
6 use t::Util;
7
8 test('both extends and with', <<'END', {'Moose' => 0, 'Test::More' => 0, 'Exporter' => 0});
9 use Moose;
10 extends 'Test::More';
11 with 'Exporter';
12 END
13
14 test('with', <<'END', {'Moo::Role' => 0, 'Test::More' => 0});
15 use Moo::Role;
16 with 'Test::More';
17 END
18
19 test('extends', <<'END', {'Mo' => 0, 'Test::More' => 0});
20 use Mo;
21 extends 'Test::More';
22 END
23
24 #SKIP: works with only limited versions of perl
25 test('Moose-like module that does not have Moose in its name', <<'END', {'Moxie' => 0, 'Test::More' => 0, 'Exporter' => 0});
26 use Moxie;
27 extends 'Test::More';
28 with 'Exporter';
29 END
30
31 test('Moose::Role-like module that does not have Role in its name', <<'END', {'Test::Routine' => 0, 'Test::More' => 0});
32 use Test::Routine;
33 with 'Test::More';
34 END
35
36 test('Mo-like module that does not have Moose in its name', <<'END', {'Pegex::Base' => 0, 'Test::More' => 0});
37 use Pegex::Base;
38 extends 'Test::More';
39 END
40
41 done_testing;