Condition Coverage

blib/lib/SignalWire/Agents/Relay/Call.pm
Criterion Covered Total %
condition 7 32 21.8


and 3 conditions

line !l l&&!r l&&r condition
71 0 0 0 ref $result eq "HASH" and $result->{'code'}
0 0 0 ref $result eq "HASH" and $result->{'code'} and $result->{'code'} =~ /^(404|410)$/
89 0 13 2 $event->can("end_reason") and $event->end_reason
90 0 0 15 $event->can("peer") and ref $event->peer eq "HASH"
0 15 0 $event->can("peer") and ref $event->peer eq "HASH" and %{$event->peer;}
103 15 0 0 $control_id and exists $self->_actions->{$control_id}
331 0 0 0 ref $result eq "HASH" and $result->{'code'}
0 0 0 ref $result eq "HASH" and $result->{'code'} and $result->{'code'} =~ /^(404|410)$/

or 2 conditions

line l !l condition
83 15 0 $event->event_type // ""
87 15 0 $event->call_state // ""
108 0 0 {"calling.call.collect" => {"error" => 1,"finished" => 1,"no_input" => 1,"no_match" => 1},"calling.call.detect" => {"error" => 1,"finished" => 1},"calling.call.fax" => {"error" => 1,"finished" => 1},"calling.call.pay" => {"error" => 1,"finished" => 1},"calling.call.play" => {"error" => 1,"finished" => 1},"calling.call.record" => {"finished" => 1,"no_input" => 1},"calling.call.stream" => {"finished" => 1},"calling.call.tap" => {"finished" => 1},"calling.call.transcribe" => {"finished" => 1}}->{$event_type} // {}
109 0 0 $event->state // ""