Group
Extension

Matches 4

MooX-Press ( T/TO/TOBYINK/MooX-Press-0.086.tar.gz, TOBYINK, 2022; MetaCPAN )
MooX-Press/t/88patchpackage.t ( view source; MetaCPAN )
->xyzzy,
	999,
	'attribute installed',
);

is(
	$obj->mymethod(''),
	42,
	'method installed',
);

isnt(
	exception { $obj->mymethod() },
	undef,
	'signature works',
);

is(
	$obj->blep({}),
	'{}',
	'm
'[]',
	'multimethod candidate 2',
);

is(
	$obj->blep(""),
	'""',
	'multimethod candidate 3',
);

isnt(
	exception { $obj->blep(undef) },
	undef,
	'multimethod exception',
);

is(
	$obj->XYZ,
	666,
	'
MooX-Press ( T/TO/TOBYINK/MooX-Press-0.086.tar.gz, TOBYINK, 2022; MetaCPAN )
MooX-Press/t/21coderef.t ( view source; MetaCPAN )

	optimize         => !!1,
	caller           => 'Foo',
});

is_deeply(
	$code->([], [], 1.1, "hi"),
	[ "Foo", [], [], 1, "hi" ],
);

isnt(
	exception { $code->(1.1, "hi") },
	undef,
);

done_testing;
MooX-Press ( T/TO/TOBYINK/MooX-Press-0.086.tar.gz, TOBYINK, 2022; MetaCPAN )
MooX-Press/t/26accumulate.t ( view source; MetaCPAN )
ss  => [
		'Bar' => { has => { foo => { type => 'Foo' } } },
	],
);

my $foo = MyApp->new_foo;
my $bar = MyApp->new_bar(foo => $foo);

isnt(
	exception { $bar->foo(undef) },
	undef,
);

done_testing;
MooX-Press ( T/TO/TOBYINK/MooX-Press-0.086.tar.gz, TOBYINK, 2022; MetaCPAN )
MooX-Press/t/26accumulate-zylite.t ( view source; MetaCPAN )
 {
	class 'Bar' => sub {
		has 'foo' => ( type => 'Foo' );
	};
};

my $foo = MyApp->new_foo;
my $bar = MyApp->new_bar( foo => $foo );

isnt(
	exception { $bar->foo(undef) },
	undef,
);

done_testing;

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.