Condition Coverage

blib/lib/AnyEvent/Discord.pm
Criterion Covered Total %
condition 4 52 7.6


and 3 conditions

line !l l&&!r l&&r condition
141 0 0 0 $payload and defined $payload->op
145 0 0 0 $payload->s and $payload->s > 0
244 0 0 0 $payload and $payload->{'url'}
0 0 0 $payload and $payload->{'url'} and $payload->{'url'} =~ /^wss/u
309 0 0 0 defined $opcode and not ref $opcode
0 0 0 defined $opcode and not ref $opcode and &Scalar::Util::looks_like_number($opcode)
325 0 0 0 defined $opcode and not ref $opcode
0 0 0 defined $opcode and not ref $opcode and &Scalar::Util::looks_like_number($opcode)
330 0 0 0 defined $opcode and not ref $opcode
0 0 0 defined $opcode and not ref $opcode and &Scalar::Util::looks_like_number($opcode)
335 0 0 0 defined $opcode and not ref $opcode
0 0 0 defined $opcode and not ref $opcode and &Scalar::Util::looks_like_number($opcode)
340 0 0 0 defined $opcode and not ref $opcode
0 0 0 defined $opcode and not ref $opcode and &Scalar::Util::looks_like_number($opcode)
345 0 0 0 defined $opcode and not ref $opcode
0 0 0 defined $opcode and not ref $opcode and &Scalar::Util::looks_like_number($opcode)

or 2 conditions

line l !l condition
60 2 3 $self->_events->{$event_type} //= []
69 2 1 $handler || 'n/a'