projects
/
gitmo/Class-MOP.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
ab07b75
)
add test for get_message_map on empty package
Jesse Luehrs [Sat, 25 Apr 2009 00:42:18 +0000 (19:42 -0500)]
t/307_null_stash.t
[new file with mode: 0644]
patch
|
blob
diff --git a/t/307_null_stash.t
b/t/307_null_stash.t
new file mode 100644
(file)
index 0000000..
5b018ed
--- /dev/null
+++ b/
t/307_null_stash.t
@@ -0,0
+1,8
@@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+use Test::More tests => 1;
+
+use Class::MOP;
+my $map = Class::MOP::Class->initialize('Non::Existent::Package')->get_method_map;
+pass("empty stashes don't segfault");