Branch Coverage

blib/lib/SignalWire/Agents/Relay/Message.pm
Criterion Covered Total %
branch 10 20 50.0


line true false branch
35 2 0 if ($cb)
37 0 2 if ($self->completed)
39 0 0 if $@
68 9 0 $event->can('message_state') ? :
69 9 0 if $message_state
72 0 9 if $event->can("reason") and $event->reason
77 0 0 if $@
81 5 4 if ({"delivered" => 1,"failed" => 1,"undelivered" => 1}->{$message_state})
84 2 3 if (my $cb = $self->_on_completed)
86 0 2 if $@