| 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('exclude inner package', <<'END', {'Moose' => 0, 'Exporter' => 0}); |
| 9 |
package Foo; |
| 10 |
|
| 11 |
package main; |
| 12 |
use Moose; |
| 13 |
extends 'Foo'; |
| 14 |
with 'Exporter'; |
| 15 |
END |
| 16 |
|
| 17 |
test('exclude inner package with comment', <<'END', {'Moose' => 0, 'Exporter' => 0}); |
| 18 |
package # hide from PAUSE |
| 19 |
Foo; |
| 20 |
|
| 21 |
package main; |
| 22 |
use Moose; |
| 23 |
extends 'Foo'; |
| 24 |
with 'Exporter'; |
| 25 |
END |
| 26 |
|
| 27 |
done_testing; |