5 use Data::Dump qw( pp );
6 use Test::More tests => 1;
9 package IntrospectionTest;
10 use IntrospectTypeExports __PACKAGE__, qw( TwentyThree NonEmptyStr MyNonEmptyStr );
11 use TestLibrary qw( TwentyThree );
12 use IntrospectTypeExports __PACKAGE__, qw( TwentyThree NonEmptyStr MyNonEmptyStr );
13 use TestLibrary NonEmptyStr => { -as => 'MyNonEmptyStr' };
14 use IntrospectTypeExports __PACKAGE__, qw( TwentyThree NonEmptyStr MyNonEmptyStr );
17 delete ${'IntrospectionTest::'}{TwentyThree};
21 use IntrospectTypeExports IntrospectionTest => qw( TwentyThree NonEmptyStr MyNonEmptyStr );
23 my $P = 'IntrospectionTest';
25 is_deeply(IntrospectTypeExports->get_memory, [
27 [$P, TwentyThree => undef],
28 [$P, NonEmptyStr => undef],
29 [$P, MyNonEmptyStr => undef],
31 [$P, TwentyThree => 'TestLibrary::TwentyThree'],
32 [$P, NonEmptyStr => undef],
33 [$P, MyNonEmptyStr => undef],
35 [$P, TwentyThree => 'TestLibrary::TwentyThree'],
36 [$P, NonEmptyStr => undef],
37 [$P, MyNonEmptyStr => 'TestLibrary::NonEmptyStr'],
39 [$P, TwentyThree => undef],
40 [$P, NonEmptyStr => undef],
41 [$P, MyNonEmptyStr => 'TestLibrary::NonEmptyStr'],
43 ], 'all calls to has_available_type_export returned correct results');