Some changes to make MX::Types::Combine detect errors earlier
authorDave Rolsky <autarch@urth.org>
Mon, 8 Nov 2010 15:52:51 +0000 (09:52 -0600)
committerDave Rolsky <autarch@urth.org>
Mon, 8 Nov 2010 15:52:51 +0000 (09:52 -0600)
commit587387ef2f83406f38366f596df535e167237583
tree0be4a502309fb13cbf61df73fc7c69e1f503d4a4
parent10390913a3dce9f3c43d7797a41b2384634bc9a1
Some changes to make MX::Types::Combine detect errors earlier

We check that all the packages we are combining actually have a ->type_names
method.

Type libs are loaded when the provided type libs are set, rather than every
time import is called.

Generate the list of exported types when the provided type libs are set,
rather than every time import is called.
lib/MooseX/Types/Combine.pm
t/18_combined_libs.t