Object-HashBase
view release on metacpan or search on metacpan
lib/Object/HashBase/Test.pm view on Meta::CPAN
}
my $pkg = 'Object::HashBase::Test::Const::Test';
is($pkg->do_it, 'const', "worked as expected");
{
local $SIG{__WARN__} = sub { };
*Object::HashBase::Test::Const::Test::FOO = sub { 0 };
}
ok(!$pkg->FOO, "overrode const sub");
{
local $TODO = "known to fail on $]" if $] le "5.006002";
is($pkg->do_it, 'const', "worked as expected, const was constant");
}
BEGIN {
$INC{'Object/HashBase/Test/HBase/Wrapped.pm'} = __FILE__;
package
Object::HashBase::Test::HBase::Wrapped;
use Object::HashBase qw/foo bar dup/;
( run in 0.474 second using v1.01-cache-2.11-cpan-cc502c75498 )