test/out/lib/XML/Pastor/Test/Type/Country.pm

filter: Statementstmt 97.3% 37 / 38 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 91.6% 11 / 12 Podpod 100% 1 / 1 totaltotal 96.0% 49 / 51 CC 1 SCAR 0.8
CC
1
Cov
97%
code
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« test/out/lib/XML/Pastor/Test/Type/City.pm ↑ Summary blib/lib/XML/Pastor/Builtin.pm »
1  
2 #PASTOR: Code generated by XML::Pastor/1.0.4 at 'Fri Oct 30 23:33:56 2026'
3  
4 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶no warnings qw(uninitialized);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use XML::Pastor;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11  
12  
13 #================================================================
14  
15 package XML::Pastor::Test::Type::Country;
16  
17 1 ▶use XML::Pastor::Test::Type::City;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use XML::Pastor::Test::Type::Country_currency;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use XML::Pastor::Test::Type::Country_name;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 1 ▶use XML::Pastor::Test::Type::Population;
Subroutine BEGIN: called CC=1 SCAR=0.0
21 1 ▶use XML::Pastor::Test::city;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 1 ▶use XML::Pastor::Test::population;
Subroutine BEGIN: called CC=1 SCAR=0.0
23  
24 1 our @ISA=qw(XML::Pastor::ComplexType);
25  
26 1 XML::Pastor::Test::Type::Country->mk_accessors( qw(_code name population currency city));
27  
28 # Attribute accessor aliases
29  
30 0 ▶sub code { &_code; }
Subroutine code: not called CC=1 SCAR=6.9
Pod documented
31  
32 1 XML::Pastor::Test::Type::Country->XmlSchemaType( bless( {
33 'attributeInfo' => {
34 'code' => bless( {
35 'class' => 'XML::Pastor::Builtin::string',
36 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
37 'name' => 'code',
38 'scope' => 'local',
39 'targetNamespace' => 'http://www.example.com/country',
40 'type' => 'string|http://www.w3.org/2001/XMLSchema'
41 }, 'XML::Pastor::Schema::Attribute' )
42 },
43 'attributePrefix' => '_',
44 'attributes' => [
45 'code'
46 ],
47 'baseClasses' => [
48 'XML::Pastor::ComplexType'
49 ],
50 'class' => 'XML::Pastor::Test::Type::Country',
51 'contentType' => 'complex',
52 'elementInfo' => {
53 'city' => bless( {
54 'class' => 'XML::Pastor::Test::Type::City',
55 'definition' => bless( {
56 'baseClasses' => [
57 'XML::Pastor::Test::Type::City',
58 'XML::Pastor::Element'
59 ],
60 'class' => 'XML::Pastor::Test::city',
61 'isRedefinable' => 1,
62 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
63 'name' => 'city',
64 'scope' => 'global',
65 'targetNamespace' => 'http://www.example.com/country',
66 'type' => 'City|http://www.example.com/country'
67 }, 'XML::Pastor::Schema::Element' ),
68 'maxOccurs' => 'unbounded',
69 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
70 'minOccurs' => '0',
71 'name' => 'city',
72 'nameIsAutoGenerated' => 1,
73 'ref' => 'city|http://www.example.com/country',
74 'scope' => 'local',
75 'targetNamespace' => 'http://www.example.com/country'
76 }, 'XML::Pastor::Schema::Element' ),
77 'currency' => bless( {
78 'class' => 'XML::Pastor::Test::Type::Country_currency',
79 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
80 'minOccurs' => '0',
81 'name' => 'currency',
82 'scope' => 'local',
83 'targetNamespace' => 'http://www.example.com/country',
84 'type' => 'Country_currency|http://www.example.com/country'
85 }, 'XML::Pastor::Schema::Element' ),
86 'name' => bless( {
87 'class' => 'XML::Pastor::Test::Type::Country_name',
88 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
89 'minOccurs' => '0',
90 'name' => 'name',
91 'scope' => 'local',
92 'targetNamespace' => 'http://www.example.com/country',
93 'type' => 'Country_name|http://www.example.com/country'
94 }, 'XML::Pastor::Schema::Element' ),
95 'population' => bless( {
96 'class' => 'XML::Pastor::Test::Type::Population',
97 'definition' => bless( {
98 'baseClasses' => [
99 'XML::Pastor::Test::Type::Population',
100 'XML::Pastor::Element'
101 ],
102 'class' => 'XML::Pastor::Test::population',
103 'isRedefinable' => 1,
104 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
105 'name' => 'population',
106 'scope' => 'global',
107 'targetNamespace' => 'http://www.example.com/country',
108 'type' => 'Population|http://www.example.com/country'
109 }, 'XML::Pastor::Schema::Element' ),
110 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
111 'minOccurs' => '0',
112 'name' => 'population',
113 'nameIsAutoGenerated' => 1,
114 'ref' => 'population|http://www.example.com/country',
115 'scope' => 'local',
116 'targetNamespace' => 'http://www.example.com/country'
117 }, 'XML::Pastor::Schema::Element' )
118 },
119 'elements' => [
120 'name',
121 'population',
122 'currency',
123 'city'
124 ],
125 'isRedefinable' => 1,
126 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
127 'name' => 'Country',
128 'scope' => 'global',
129 'targetNamespace' => 'http://www.example.com/country'
130 }, 'XML::Pastor::Schema::ComplexType' ) );
131  
132 1 1;
133  
134  
135 __END__
« test/out/lib/XML/Pastor/Test/Type/City.pm ↑ Summary blib/lib/XML/Pastor/Builtin.pm »