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 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 1 48 if ($attribute->does('Paws::API::Attribute::Trait::AutoInHeader'))
90 1 0 if ($attribute->auto eq 'MD5')
94 0 1 if ($attribute->has_value($call)) { }
105 31 17 unless $attribute->has_value($call)
106 0 17 if ($attribute->does('Paws::API::Attribute::Trait::ParamInHeader')) { }
1 16 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 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')
180 2 0 if (ref $attribute_value) { }
181 0 2 $attribute->does('NameInRequest') ? :
190 5 2 unless $xml
198 4 3 if ($self->isa('Paws::S3')) { }
210 14 35 if ($attribute->does('Paws::API::Attribute::Trait::ParamInQuery'))
211 6 8 if defined $call->$att_name
226 2 5 if (my $xml_body = $self->_to_xml_body($call))
232 1 6 if ($call->can('_stream_param'))