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]

diff --git a/t/307_null_stash.t b/t/307_null_stash.t
new file mode 100644 (file)
index 0000000..5b018ed
--- /dev/null
@@ -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");