Branch Coverage

blib/lib/Paws/Net/RestXmlCaller.pm
Criterion Covered Total %
branch 53 62 85.4


line true false branch
11 0 9 $self->flattened_arrays ? :
23 3 120 if $params->meta->get_attribute($att)->does('Paws::API::Attribute::Trait::ParamInHeaders')
25 14 106 $params->meta->get_attribute($att)->does('Paws::API::Attribute::Trait::ParamInQuery') ? :
26 34 86 if (defined $params->$att)
29 27 7 if ($self->_is_internal_type($att_type)) { }
3 4 elsif ($att_type =~ /^ArrayRef\[(.*)\]/) { }
32 1 2 if ($self->_is_internal_type("$1")) { }
70 11 90 if ($attribute->does('Paws::API::Attribute::Trait::ParamInURI'))
72 3 8 if ($uri_attrib_is_greedy{$att_name}) { }
89 3 98 if ($attribute->does('Paws::API::Attribute::Trait::AutoInHeader'))
90 3 0 if ($attribute->auto eq 'MD5')
94 0 3 if ($attribute->has_value($call)) { }
105 75 23 unless $attribute->has_value($call)
106 0 23 if ($attribute->does('Paws::API::Attribute::Trait::ParamInHeader')) { }
1 22 elsif ($attribute->does('Paws::API::Attribute::Trait::ParamInHeaders')) { }
141 10 12 unless $attribute->has_value($value)
142 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\[(.*?\:\:.*)\]/) { }
143 0 2 if ($attribute->does('NameInRequest')) { }
153 2 0 $attribute->does('NameInRequest') ? :
156 0 7 if ($attribute->does('NameInRequest')) { }
172 2 4 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')
180 2 0 if (ref $attribute_value) { }
181 0 2 $attribute->does('NameInRequest') ? :
190 7 2 unless $xml
198 6 3 if ($self->isa('Paws::S3')) { }
210 14 87 if ($attribute->does('Paws::API::Attribute::Trait::ParamInQuery'))
211 6 8 if defined $call->$att_name
226 2 7 if (my $xml_body = $self->_to_xml_body($call))
230 3 6 if ($call->can('_stream_param'))