Branch Coverage

blib/lib/SignalWire/Agents/SWAIG/FunctionResult.pm
Criterion Covered Total %
branch 46 122 37.7


line true false branch
45 3 0 $post_process ? :
65 2 0 exists $opts{'final'} ? :
69 1 1 if defined $from
71 1 1 $final ? :
87 0 1 exists $opts{'final'} ? :
89 1 0 $final ? :
114 1 3 if $timeout < 0
115 1 3 if $timeout > 900
126 1 2 if ($answer_first) { }
1 1 elsif (defined $timeout) { }
0 1 elsif (defined $enabled) { }
131 0 0 $enabled ? :
195 1 0 if ($system_prompt and not $user_prompt and not $consolidate and not $full_reset)
200 1 0 if $system_prompt
201 1 0 if $user_prompt
202 1 0 if $consolidate
203 1 0 if $full_reset
223 1 1 if ($wait)
241 0 0 unless $format eq "wav" or $format eq "mp3"
242 0 0 unless $direction eq "speak" or $direction eq "listen" or $direction eq "both"
245 0 0 $stereo ? :
250 0 0 if $control_id
263 0 0 if $control_id
303 1 0 $enabled ? :
309 1 0 $enabled ? :
324 8 1 if (ref $swml_content eq 'HASH') { }
1 0 elsif (not ref $swml_content) { }
332 0 1 if ($@)
339 1 8 if ($transfer)
348 0 0 unless defined $name and length $name
354 0 0 if (not $muted and $beep eq "true" and not keys %opts)
363 0 0 if $muted
364 0 0 if $beep ne "true"
397 0 0 unless $direction eq "speak" or $direction eq "hear" or $direction eq "both"
399 0 0 unless $codec eq "PCMU" or $codec eq "PCMA"
403 0 0 if $control_id
404 0 0 if $direction ne "both"
405 0 0 if $codec ne "PCMU"
418 0 0 if $control_id
436 0 0 unless $body or $media
442 0 0 if $body
443 0 0 if $media
444 0 0 if $tags
445 0 0 if $region
473 0 0 $opts{'security_code'} // 1 ? :
477 0 0 if (ref $postal or $postal =~ /^[01]$/) { }
478 0 0 $postal ? :
483 0 0 if $opts{'status_url'}
484 0 0 if $opts{'charge_amount'}
485 0 0 if $opts{'description'}
486 0 0 if $opts{'parameters'}
487 0 0 if $opts{'prompts'}
511 2 2 if $call_id
512 0 4 if $node_id
513 4 0 if $params
589 1 0 if $card_type
590 0 1 if $error_type
611 56 1 if length $self->response
613 45 12 if (@{$self->action;})
615 2 43 if $self->post_process
619 1 56 unless (keys %result)