Branch Coverage

blib/lib/Paws/Net/RestXmlCaller.pm
Criterion Covered Total %
branch 49 56 87.5


line true false branch
11 0 9 $self->flattened_arrays ? :
23 1 70 if $params->meta->get_attribute($att)->does('Paws::API::Attribute::Trait::ParamInHeaders')
25 14 56 $params->meta->get_attribute($att)->does('Paws::API::Attribute::Trait::ParamInQuery') ? :
26 28 42 if (defined $params->$att)
29 21 7 if ($self->_is_internal_type($att_type)) { }
3 4 elsif ($att_type =~ /^ArrayRef\[(.*)\]/) { }
32 1 2 if ($self->_is_internal_type("$1")) { }
70 7 42 if ($attribute->does('Paws::API::Attribute::Trait::ParamInURI'))
72 1 6 if ($uri_attrib_is_greedy{$att_name}) { }
89 32 17 unless $attribute->has_value($call)
90 0 17 if ($attribute->does('Paws::API::Attribute::Trait::ParamInHeader')) { }
1 16 elsif ($attribute->does('Paws::API::Attribute::Trait::ParamInHeaders')) { }
124 10 12 unless $attribute->has_value($value)
125 2 10 if (Moose::Util::find_meta($attribute->type_constraint->name)) { }
1 9 elsif ($attribute->type_constraint eq 'ArrayRef[Str|Undef]') { }
2 7 elsif ($attribute->type_constraint =~ /^ArrayRef\[(.*?\:\:.*)\]/) { }
126 0 2 if ($attribute->does('NameInRequest')) { }
136 2 0 $attribute->does('NameInRequest') ? :
139 0 7 if ($attribute->does('NameInRequest')) { }
155 2 2 if ($attribute->has_value($call) and not $attribute->does('Paws::API::Attribute::Trait::ParamInHeader') and not $attribute->does('Paws::API::Attribute::Trait::ParamInQuery') and not $attribute->does('Paws::API::Attribute::Trait::ParamInURI') and not $attribute->does('Paws::API::Attribute::Trait::ParamInBody') and not $attribute->type_constraint eq 'Paws::S3::Metadata')
163 2 0 if (ref $attribute_value) { }
164 0 2 $attribute->does('NameInRequest') ? :
173 5 2 unless $xml
181 4 3 if ($self->isa('Paws::S3')) { }
193 14 35 if ($attribute->does('Paws::API::Attribute::Trait::ParamInQuery'))
194 6 8 if defined $call->$att_name
209 2 5 if (my $xml_body = $self->_to_xml_body($call))
215 1 6 if ($call->can('_stream_param'))