Condition Coverage

blib/lib/SignalWire/Agents/Relay/Client.pm
Criterion Covered Total %
condition 35 108 32.4


and 3 conditions

line !l l&&!r l&&r condition
195 0 0 0 $method ne "signalwire.connect" and $self->protocol
220 0 0 0 not $done and time - $start < $timeout
245 0 0 0 ref $result eq "HASH" and $result->{'message_id'}
312 0 0 0 not $done and time - $start < $timeout
322 0 0 0 $call and $on_completed
325 0 0 0 $event->event_type eq "calling.call.state" and $event->call_state eq "ended"
359 0 0 0 $bytes and $bytes > 0
478 0 3 2 $event_type eq "calling.call.state" and $tag
3 0 2 $event_type eq "calling.call.state" and $tag and exists $self->_pending_dials->{$tag}
479 0 0 2 not exists $self->_calls->{$call_id} and $call_id
493 0 1 4 $call_id and my $call = $self->_calls->{$call_id}

or 2 conditions

line l !l condition
190 0 0 $params //= {}
254 0 0 $opts{'context'} // ""
0 0 $opts{'from_number'} // ""
0 0 $opts{'to_number'} // ""
0 0 $opts{'body'} // ""
0 0 $opts{'media'} // []
0 0 $opts{'tags'} // []
286 0 0 delete $opts{'timeout'} || 120
383 2 0 $msg->{'id'} // ""
395 2 0 $msg->{'method'} // ""
400 1 0 $msg->{'params'} // {}
407 0 0 $msg->{'params'} // {}
426 18 0 $outer_params->{'event_type'} // ""
427 18 0 $outer_params->{'params'} // {}
440 1 0 $inner_params->{'authorization_state'} // ""
458 4 0 $inner_params->{'message_id'} // ""
475 5 0 $inner_params->{'call_id'} // ""
476 2 3 $inner_params->{'tag'} // ""
486 2 0 $inner_params->{'node_id'} // ""
2 0 $inner_params->{'device'} // {}
507 1 0 $params->{'call_id'} // ""
516 1 0 $params->{'node_id'} // ""
0 1 $params->{'tag'} // ""
1 0 $params->{'device'} // {}
1 0 $params->{'context'} // ""
1 0 $params->{'call_state'} // "ringing"
542 5 0 $params->{'tag'} // ""
543 5 0 $params->{'dial_state'} // ""
544 3 2 $params->{'call'} // {}
550 2 0 $call_info->{'call_id'} // ""
558 0 0 $call_info->{'node_id'} // ""
0 0 $call_info->{'device'} // {}
577 1 1 $params->{'restart'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
285 0 0 0 $opts{'tag'} || _generate_uuid()
359 0 0 0 not defined $bytes or $bytes == 0
382 1 1 2 exists $msg->{'result'} or exists $msg->{'error'}