summaryrefslogtreecommitdiffstats
path: root/t/lib
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-11-15 10:50:59 -0600
committerJesse Luehrs <doy@tozt.net>2010-11-15 10:56:55 -0600
commitc53d2df2c524d9db9af996ac6543831c480b2092 (patch)
tree12e6f7e2a8f19655ab19161020e3fa8e4addfcc6 /t/lib
parentc52f752e4094e5fd57f269a87ef252c56a328100 (diff)
downloadpackage-stash-xs-c53d2df2c524d9db9af996ac6543831c480b2092.tar.gz
package-stash-xs-c53d2df2c524d9db9af996ac6543831c480b2092.zip
convert the XS implementation to its own dist
Diffstat (limited to 't/lib')
-rw-r--r--t/lib/Package/Stash.pm19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/lib/Package/Stash.pm b/t/lib/Package/Stash.pm
new file mode 100644
index 0000000..fb25135
--- /dev/null
+++ b/t/lib/Package/Stash.pm
@@ -0,0 +1,19 @@
+package # hide from PAUSE
+ Package::Stash;
+use strict;
+use warnings;
+
+use Package::Stash::XS;
+
+BEGIN {
+ my $ps = Package::Stash::XS->new(__PACKAGE__);
+ my $ps_xs = Package::Stash::XS->new('Package::Stash::XS');
+ for my $method (qw(new name namespace add_symbol remove_glob has_symbol
+ get_symbol get_or_add_symbol remove_symbol
+ list_all_symbols get_all_symbols)) {
+ my $sym = '&' . $method;
+ $ps->add_symbol($sym => $ps_xs->get_symbol($sym));
+ }
+}
+
+1;