Test-Class-Most
view release on metacpan or search on metacpan
lib/Test/Class/Most.pm view on Meta::CPAN
my $test_class = ref $proto || $proto;
return $IS_ABSTRACT{$test_class};
}
sub import {
my ( $class, %args ) = @_;
my $caller = caller;
eval "package $caller; use Test::Most;";
croak($@) if $@;
warnings->import;
strict->import;
if ( my $parent = delete $args{parent} ) {
if ( ref $parent && 'ARRAY' ne ref $parent ) {
croak(
"Argument to 'parent' must be a classname or array of classnames, not ($parent)"
);
}
$parent = [$parent] unless ref $parent;
foreach my $p (@$parent) {
eval "use $p";
croak($@) if $@;
( run in 0.289 second using v1.01-cache-2.11-cpan-299005ec8e3 )