blob: 97227c675157467d5aeae94cf475770dd1777b5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
use lib "t/lib";
package MyExporter::User;
use MyExporter;
use Test::More;
use Test::Fatal;
is( exception {
with_prototype {
my $caller = caller(0);
is($caller, 'MyExporter', "With_caller prototype code gets called from MyMooseX");
};
}, undef, "check function with prototype" );
is( exception {
as_is_prototype {
my $caller = caller(0);
is($caller, 'MyExporter', "As-is prototype code gets called from MyMooseX");
};
}, undef, "check function with prototype" );
done_testing;
|