Condition Coverage

blib/lib/SignalWire/Agents/SWAIG/FunctionResult.pm
Criterion Covered Total %
condition 23 119 19.3


and 3 conditions

line !l l&&!r l&&r condition
195 0 1 1 $system_prompt and not $user_prompt
1 0 1 $system_prompt and not $user_prompt and not $consolidate
1 0 1 $system_prompt and not $user_prompt and not $consolidate and not $full_reset
348 0 0 0 defined $name and length $name
354 0 0 0 not $muted and $beep eq "true"
0 0 0 not $muted and $beep eq "true" and not keys %opts

or 2 conditions

line l !l condition
113 4 0 $timeout //= 300
237 0 0 $opts{'stereo'} // 0
238 0 0 $opts{'format'} // "wav"
239 0 0 $opts{'direction'} // "both"
302 1 0 $enabled //= 1
308 1 0 $enabled //= 1
321 1 8 $opts{'transfer'} // 0
350 0 0 $opts{'muted'} // 0
351 0 0 $opts{'beep'} // "true"
394 0 0 $opts{'direction'} // "both"
395 0 0 $opts{'codec'} // "PCMU"
429 0 0 $opts{'to_number'} // die("to_number is required")
430 0 0 $opts{'from_number'} // die("from_number is required")
456 0 0 $opts{'payment_connector_url'} // die("payment_connector_url required")
457 0 0 $opts{'input_method'} // "dtmf"
458 0 0 $opts{'timeout'} // 5
459 0 0 $opts{'max_attempts'} // 1
460 0 0 $opts{'ai_response'} // "The payment status is \${pay_result}, do not mention anything else about collecting payment if successful."
473 0 0 $opts{'payment_method'} // "credit-card"
0 0 $opts{'security_code'} // 1
0 0 $opts{'token_type'} // "reusable"
0 0 $opts{'currency'} // "usd"
0 0 $opts{'language'} // "en-US"
0 0 $opts{'voice'} // "woman"
0 0 $opts{'valid_card_types'} // "visa mastercard amex"
476 0 0 $opts{'postal_code'} // 1
505 4 0 $opts{'method'} // die("method is required")
524 1 0 $opts{'to_number'} // die("to_number is required")
525 1 0 $opts{'from_number'} // die("from_number is required")
526 1 0 $opts{'dest_swml'} // die("dest_swml is required")
527 0 1 $opts{'device_type'} // "phone"
546 1 0 $opts{'call_id'} // die("call_id is required")
547 1 0 $opts{'message_text'} // die("message_text is required")
548 0 1 $opts{'role'} // "system"
562 1 0 $opts{'call_id'} // die("call_id is required")
580 1 0 $opts{'for_situation'} // die("for_situation is required")
581 1 0 $opts{'actions'} // die("actions is required")

or 3 conditions

line l !l&&r !l&&!r condition
209 1 0 0 $text //= JSON::true()
241 0 0 0 $format eq "wav" or $format eq "mp3"
242 0 0 0 $direction eq "speak" or $direction eq "listen"
0 0 0 $direction eq "speak" or $direction eq "listen" or $direction eq "both"
397 0 0 0 $direction eq "speak" or $direction eq "hear"
0 0 0 $direction eq "speak" or $direction eq "hear" or $direction eq "both"
399 0 0 0 $codec eq "PCMU" or $codec eq "PCMA"
436 0 0 0 $body or $media
477 0 0 0 ref $postal or $postal =~ /^[01]$/