Branch Coverage

blib/lib/SignalWire/Agents/Relay/Call.pm
Criterion Covered Total %
branch 9 34 26.4


line true false branch
48 0 0 unless $client
68 0 0 if ($client)
71 0 0 if (ref $result eq "HASH" and $result->{'code'} and $result->{'code'} =~ /^(404|410)$/)
86 15 0 if ($event_type eq 'calling.call.state') { }
0 0 elsif ($event_type eq 'calling.call.connect') { }
89 2 13 if $event->can("end_reason") and $event->end_reason
90 0 15 if $event->can("peer") and ref $event->peer eq "HASH" and %{$event->peer;}
93 5 10 if ({"ended" => 1}->{$new_state})
98 0 0 if $event->can("peer")
102 0 15 $event->can('control_id') ? :
103 0 0 if ($control_id and exists $self->_actions->{$control_id})
109 0 0 $event->can('state') ? :
110 0 0 if ($terminal->{$action_state})
119 0 4 if $@
134 2 0 unless $action->completed
329 0 0 if ($client)
331 0 0 if (ref $result eq "HASH" and $result->{'code'} and $result->{'code'} =~ /^(404|410)$/)