blib/lib/SOAP/WSDL/XSD/Typelib/Builtin/list.pm

filter: Statementstmt 100% 14 / 14 Branchbran 100% 6 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 95.8% 23 / 24 CC 4 SCAR 11.0
CC
4
Cov
100%
serialize
4.0
BEGIN
1.0
BEGIN
1.0
CRAP 3.0
« blib/lib/SOAP/WSDL/Factory/Deserializer.pm ↑ Summary blib/lib/SOAP/WSDL/Generator/Template.pm »
1 package SOAP::WSDL::XSD::Typelib::Builtin::list;
2 39 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 39 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 8 ▶sub serialize {
Subroutine serialize: called CC=4 SCAR=13.9
Pod undocumented
6 8 my ($self, $opt) = @_;
7 8 ▶ $opt = {} if not $opt;
Branch: 1 branch
BranchTrueFalseTotal
unless $opt 7 1 8
8 8 my $value = $self->get_value();
9 8 ▶ return $self->start_tag({ %$opt, nil => 1 }) if not defined $value;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $value 2 6 8
10 6 ▶ $value = [ $value ] if not ref $value;
Branch: 1 branch
BranchTrueFalseTotal
unless ref $value 1 5 6
11 return join q{}, $self->start_tag($opt, $value)
12 6 , join( q{ }, @{ $value } )
13 , $self->end_tag($opt, $value);
14 }
15 39 1;
16  
17 __END__
« blib/lib/SOAP/WSDL/Factory/Deserializer.pm ↑ Summary blib/lib/SOAP/WSDL/Generator/Template.pm »