line |
true |
false |
branch |
44
|
3 |
0 |
@_ ? :
|
|
0 |
3 |
if @_ != 0
|
55
|
5 |
0 |
@_ ? :
|
|
0 |
5 |
if @_ != 2
|
|
5 |
0 |
$#_ >= 0 ? :
|
|
0 |
5 |
unless Type::Tiny::XS::Str($event_type)
|
|
5 |
0 |
if ($#_ >= 0)
|
|
5 |
0 |
$#_ >= 1 ? :
|
|
0 |
5 |
unless XXX
|
|
5 |
0 |
if ($#_ >= 1)
|
60
|
1 |
4 |
if scalar grep({$_ eq $handler;} @{$self->_events->{$event_type};}) > 0
|
66
|
3 |
0 |
@_ ? :
|
|
0 |
3 |
if @_ < 1
|
|
0 |
3 |
if @_ > 2
|
|
3 |
0 |
$#_ >= 0 ? :
|
|
0 |
3 |
unless Type::Tiny::XS::Str($event_type)
|
|
3 |
0 |
if ($#_ >= 0)
|
|
2 |
1 |
$#_ >= 1 ? :
|
|
0 |
2 |
unless XXX
|
|
2 |
1 |
if ($#_ >= 1)
|
69
|
3 |
0 |
if ($self->_events->{$event_type})
|
70
|
2 |
1 |
if ($handler) { }
|
73
|
1 |
1 |
if ($self->_events->{$event_type}[$index] eq $handler)
|
86
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 0
|
94
|
0 |
0 |
if ($@)
|
115
|
0 |
0 |
unless ($self->_force_disconnect)
|
140
|
0 |
0 |
unless ($payload and defined $payload->op)
|
144
|
0 |
0 |
if $payload->s and $payload->s > 0
|
146
|
0 |
0 |
if ($payload->op == 10) { }
|
|
0 |
0 |
elsif ($payload->d) { }
|
149
|
0 |
0 |
if ($payload->d->{'author'})
|
163
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 2
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
$#_ >= 1 ? :
|
167
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 1
|
|
0 |
0 |
$#_ >= 0 ? :
|
177
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 0
|
185
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ < 2
|
|
0 |
0 |
if @_ > 3
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
unless Type::Tiny::XS::Str($method)
|
|
0 |
0 |
if ($#_ >= 0)
|
|
0 |
0 |
$#_ >= 1 ? :
|
|
0 |
0 |
unless Type::Tiny::XS::Str($path)
|
|
0 |
0 |
if ($#_ >= 1)
|
|
0 |
0 |
$#_ >= 2 ? :
|
200
|
0 |
0 |
if ($res->is_success)
|
201
|
0 |
0 |
if ($res->header('Content-Type') eq 'application/json') { }
|
211
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 0
|
230
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 1
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
unless Type::Tiny::XS::AUTO::TC2($payload)
|
|
0 |
0 |
if ($#_ >= 0)
|
231
|
0 |
0 |
unless ($self->_socket)
|
241
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 0
|
243
|
0 |
0 |
unless $payload and $payload->{'url'} and $payload->{'url'} =~ /^wss/u
|
247
|
0 |
0 |
unless $gateway =~ m[/$]u
|
253
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 1
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
unless Type::Tiny::XS::Str($type)
|
|
0 |
0 |
if ($#_ >= 0)
|
255
|
0 |
0 |
if ($self->{$event_source}{$type})
|
257
|
0 |
0 |
$event_source =~ /internal/u ? :
|
265
|
4 |
0 |
@_ ? :
|
|
0 |
4 |
if @_ != 1
|
|
4 |
0 |
$#_ >= 0 ? :
|
|
0 |
4 |
unless Type::Tiny::XS::AUTO::TC2($payload)
|
|
4 |
0 |
if ($#_ >= 0)
|
269
|
4 |
4 |
if ($self->{$event_source}{$type})
|
271
|
2 |
2 |
$event_source =~ /internal/u ? :
|
279
|
22 |
0 |
@_ ? :
|
|
0 |
22 |
if @_ != 1
|
|
22 |
0 |
$#_ >= 0 ? :
|
|
0 |
22 |
unless Type::Tiny::XS::Str($message)
|
|
22 |
0 |
if ($#_ >= 0)
|
280
|
0 |
22 |
if $self->verbose
|
284
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 1
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
unless Type::Tiny::XS::Str($message)
|
|
0 |
0 |
if ($#_ >= 0)
|
285
|
0 |
0 |
if $self->verbose == 2
|
289
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 1
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
unless Type::Tiny::XS::AUTO::TC2($payload)
|
|
0 |
0 |
if ($#_ >= 0)
|
308
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ < 2
|
|
0 |
0 |
if @_ > 3
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
$#_ >= 1 ? :
|
|
0 |
0 |
unless XXX
|
|
0 |
0 |
if ($#_ >= 1)
|
|
0 |
0 |
$#_ >= 2 ? :
|
|
0 |
0 |
unless defined $opcode and not ref $opcode and &Scalar::Util::looks_like_number($opcode)
|
|
0 |
0 |
if ($#_ >= 2)
|
314
|
0 |
0 |
if ($channel->{'type'} == 0)
|
324
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ < 2
|
|
0 |
0 |
if @_ > 3
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
$#_ >= 1 ? :
|
|
0 |
0 |
unless XXX
|
|
0 |
0 |
if ($#_ >= 1)
|
|
0 |
0 |
$#_ >= 2 ? :
|
|
0 |
0 |
unless defined $opcode and not ref $opcode and &Scalar::Util::looks_like_number($opcode)
|
|
0 |
0 |
if ($#_ >= 2)
|
329
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ < 2
|
|
0 |
0 |
if @_ > 3
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
$#_ >= 1 ? :
|
|
0 |
0 |
unless XXX
|
|
0 |
0 |
if ($#_ >= 1)
|
|
0 |
0 |
$#_ >= 2 ? :
|
|
0 |
0 |
unless defined $opcode and not ref $opcode and &Scalar::Util::looks_like_number($opcode)
|
|
0 |
0 |
if ($#_ >= 2)
|
334
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ < 2
|
|
0 |
0 |
if @_ > 3
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
$#_ >= 1 ? :
|
|
0 |
0 |
unless XXX
|
|
0 |
0 |
if ($#_ >= 1)
|
|
0 |
0 |
$#_ >= 2 ? :
|
|
0 |
0 |
unless defined $opcode and not ref $opcode and &Scalar::Util::looks_like_number($opcode)
|
|
0 |
0 |
if ($#_ >= 2)
|
339
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ < 2
|
|
0 |
0 |
if @_ > 3
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
$#_ >= 1 ? :
|
|
0 |
0 |
unless XXX
|
|
0 |
0 |
if ($#_ >= 1)
|
|
0 |
0 |
$#_ >= 2 ? :
|
|
0 |
0 |
unless defined $opcode and not ref $opcode and &Scalar::Util::looks_like_number($opcode)
|
|
0 |
0 |
if ($#_ >= 2)
|
344
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ < 2
|
|
0 |
0 |
if @_ > 3
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
$#_ >= 1 ? :
|
|
0 |
0 |
unless XXX
|
|
0 |
0 |
if ($#_ >= 1)
|
|
0 |
0 |
$#_ >= 2 ? :
|
|
0 |
0 |
unless defined $opcode and not ref $opcode and &Scalar::Util::looks_like_number($opcode)
|
|
0 |
0 |
if ($#_ >= 2)
|