line |
true |
false |
branch |
45
|
3 |
0 |
@_ ? :
|
|
0 |
3 |
if @_ != 0
|
56
|
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)
|
61
|
1 |
4 |
if scalar grep({$_ eq $handler;} @{$self->_events->{$event_type};}) > 0
|
67
|
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)
|
70
|
3 |
0 |
if ($self->_events->{$event_type})
|
71
|
2 |
1 |
if ($handler) { }
|
74
|
1 |
1 |
if ($self->_events->{$event_type}[$index] eq $handler)
|
87
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 0
|
95
|
0 |
0 |
if ($@)
|
116
|
0 |
0 |
unless ($self->_force_disconnect)
|
141
|
0 |
0 |
unless ($payload and defined $payload->op)
|
145
|
0 |
0 |
if $payload->s and $payload->s > 0
|
147
|
0 |
0 |
if ($payload->op == 10) { }
|
|
0 |
0 |
elsif ($payload->d) { }
|
150
|
0 |
0 |
if ($payload->d->{'author'})
|
164
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 2
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
$#_ >= 1 ? :
|
168
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 1
|
|
0 |
0 |
$#_ >= 0 ? :
|
178
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 0
|
186
|
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 ? :
|
201
|
0 |
0 |
if ($res->is_success)
|
202
|
0 |
0 |
if ($res->header('Content-Type') eq 'application/json') { }
|
212
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 0
|
231
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 1
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
unless Type::Tiny::XS::AUTO::TC2($payload)
|
|
0 |
0 |
if ($#_ >= 0)
|
232
|
0 |
0 |
unless ($self->_socket)
|
242
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 0
|
244
|
0 |
0 |
unless $payload and $payload->{'url'} and $payload->{'url'} =~ /^wss/u
|
248
|
0 |
0 |
unless $gateway =~ m[/$]u
|
254
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 1
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
unless Type::Tiny::XS::Str($type)
|
|
0 |
0 |
if ($#_ >= 0)
|
256
|
0 |
0 |
if ($self->{$event_source}{$type})
|
258
|
0 |
0 |
$event_source =~ /internal/u ? :
|
266
|
4 |
0 |
@_ ? :
|
|
0 |
4 |
if @_ != 1
|
|
4 |
0 |
$#_ >= 0 ? :
|
|
0 |
4 |
unless Type::Tiny::XS::AUTO::TC2($payload)
|
|
4 |
0 |
if ($#_ >= 0)
|
270
|
4 |
4 |
if ($self->{$event_source}{$type})
|
272
|
2 |
2 |
$event_source =~ /internal/u ? :
|
280
|
22 |
0 |
@_ ? :
|
|
0 |
22 |
if @_ != 1
|
|
22 |
0 |
$#_ >= 0 ? :
|
|
0 |
22 |
unless Type::Tiny::XS::Str($message)
|
|
22 |
0 |
if ($#_ >= 0)
|
281
|
0 |
22 |
if $self->verbose
|
285
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 1
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
unless Type::Tiny::XS::Str($message)
|
|
0 |
0 |
if ($#_ >= 0)
|
286
|
0 |
0 |
if $self->verbose == 2
|
290
|
0 |
0 |
@_ ? :
|
|
0 |
0 |
if @_ != 1
|
|
0 |
0 |
$#_ >= 0 ? :
|
|
0 |
0 |
unless Type::Tiny::XS::AUTO::TC2($payload)
|
|
0 |
0 |
if ($#_ >= 0)
|
309
|
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)
|
315
|
0 |
0 |
if ($channel->{'type'} == 0)
|
325
|
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)
|
330
|
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)
|
335
|
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)
|
340
|
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)
|
345
|
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)
|