HTTP-Throwable
view release on metacpan or search on metacpan
t/lib/Test/HT.pm view on Meta::CPAN
}
}
sub ht_test {
my ($identifier, $arg);
($identifier, $arg) = ref $_[0] ? (undef, shift) : (shift, shift || {});
my $comment = (defined $_[0] and ! ref $_[0])
? shift(@_)
: sprintf("ht_test at %s, line %s", (caller)[1, 2]);
my $extra = (! defined $_[0]) ? {}
: (! reftype $_[0]) ? confess("bogus extra value")
: (reftype $_[0] eq 'CODE') ? { assert => $_[0] }
: (reftype $_[0] eq 'HASH') ? $_[0]
: confess("bogus extra value");
subtest $comment => sub {
for my $factory_class (
'HTTP::Throwable::Factory',
( run in 1.805 second using v1.01-cache-2.11-cpan-1e74a51a04c )