Test-Reporter-Transport-Socket
view release on metacpan or search on metacpan
lib/Test/Reporter/Transport/Socket.pm view on Meta::CPAN
323334353637383940414243444546474849505152
for
my
$k
(
@required_args
) {
Carp::confess __PACKAGE__ .
" requires $k argument\n"
unless
exists
$args
{
$k
};
}
if
(
ref
$args
{host} eq
'ARRAY'
and !
scalar
@{
$args
{host} } ) {
Carp::confess __PACKAGE__ .
" requires 'host' argument to have elements if it is an arrayref\n"
;
}
return
bless
\
%args
=>
$class
;
}
sub
send
{
my
(
$self
,
$report
) =
@_
;
unless
(
eval
{
$report
->distfile } ) {
Carp::confess __PACKAGE__ .
": requires the 'distfile' parameter to be set\n"
.
"Please update your CPAN testing software to a version that provides \n"
.
"this information to Test::Reporter. Report will not be sent.\n"
;
}
( run in 0.273 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )