File: ns_a_role.t

package info (click to toggle)
libnamespace-sweep-perl 0.006-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 152 kB
  • sloc: perl: 243; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (5)
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
#!/usr/bin/env perl

# This test file is from the namespace::autoclean distribution (t/role.t)

use strict;
use warnings;
use Test::More;

BEGIN {
    eval 'use Moose 0.56 ()';
    plan skip_all => 'requires Moose 0.56' if $@;
    plan tests => 1;
}

BEGIN {
    diag "Testing with Moose $Moose::VERSION";
}

{
    package Foo;
    use Moose::Role;
    use namespace::sweep;
}

# meta doesn't get cleaned, although it's not in get_method_list for roles
can_ok('Foo', 'meta')