From: Jesse Luehrs Date: Sat, 25 Apr 2009 00:42:18 +0000 (-0500) Subject: add test for get_message_map on empty package X-Git-Tag: 0.83~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0de4f87e47483518dc282b7665c7fb8366428d2f;p=gitmo%2FClass-MOP.git add test for get_message_map on empty package --- diff --git a/t/307_null_stash.t b/t/307_null_stash.t new file mode 100644 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");