Twilio/Rest/Studio/V2/FlowValidate.pm

filter: Statementstmt 100% 34 / 34 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 10 / 10 Podpod n/a totaltotal 95.7% 45 / 47 CC 2 SCAR 1.7
CC
2
Cov
97%
update
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Twilio/Rest/PreviewIam/V1/Authorize.pm ↑ Summary Twilio/Rest/Studio/V2/Flow/FlowTestUser.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Studio::V2::FlowValidate;
3  
4 2 ▶use 5.016;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 our $VERSION = '2.001';
8  
9 package Twilio::Rest::Studio::V2::FlowValidateList;
10  
11 2 ▶use parent 'Twilio::ListResource';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 2 ▶use Twilio::Serialize;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
16 1 my ($class, $version) = @_;
17 1 my $self = $class->SUPER::new($version);
18 1 $self->{solution} = {};
19 1 $self->{uri} = '/Flows/Validate';
20 1 return $self;
21 }
22  
23 1 ▶sub update {
Subroutine update: called CC=2 SCAR=7.0
24 1 my ($self, $friendly_name, $status, $definition, $options) = @_;
25 1 ▶ $options //= {};
Condition50%1/2
$options //= {}
l!l
10
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
Aresult
11
00
26  
27 my $data = {
28 FriendlyName => $friendly_name,
29 Status => $status,
30 Definition => Twilio::Serialize::json_object($definition),
31 CommitMessage => $options->{commit_message},
32 1 };
33  
34 my $response =
35 1 $self->{version}->handle_request('POST', $self->{uri}, 'update', { data => $data });
36 return Twilio::Rest::Studio::V2::FlowValidateInstance->new($self->{version},
37 1 $response->get_content);
38 }
39  
40 package Twilio::Rest::Studio::V2::FlowValidateInstance;
41  
42 2 ▶use parent 'Twilio::InstanceResource';
Subroutine BEGIN: called CC=1 SCAR=0.0
43  
44 2 ▶use Twilio::Deserialize;
Subroutine BEGIN: called CC=1 SCAR=0.0
45  
46 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
47 1 my ($class, $version, $payload) = @_;
48 1 my $self = $class->SUPER::new($version, $payload);
49 1 $self->{solution} = {};
50 1 return $self;
51 }
52  
53 1 ▶sub valid { return $_[0]{properties}{valid} }
Subroutine valid: called CC=1 SCAR=0.0
54  
55 2 1;
56  
57 __END__
« Twilio/Rest/PreviewIam/V1/Authorize.pm ↑ Summary Twilio/Rest/Studio/V2/Flow/FlowTestUser.pm »