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

filter: Statementstmt 96.5% 28 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.8% 8 / 9 Podpod 100% 1 / 1 totaltotal 94.8% 37 / 39 CC 1 SCAR 1.1
CC
1
Cov
97%
code
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« test/out/lib/XML/Pastor/Test/Type/Country_name.pm ↑ Summary test/out/lib/XML/Pastor/Test/Type/Country.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::City;
16  
17 1 ▶use XML::Pastor::Test::Type::Code;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use XML::Pastor::Test::Type::Population;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use XML::Pastor::Test::population;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 1 our @ISA=qw(XML::Pastor::ComplexType);
22  
23 1 XML::Pastor::Test::Type::City->mk_accessors( qw(_code name population));
24  
25 # Attribute accessor aliases
26  
27 0 ▶sub code { &_code; }
Subroutine code: not called CC=1 SCAR=6.9
Pod documented
28  
29 1 XML::Pastor::Test::Type::City->XmlSchemaType( bless( {
30 'attributeInfo' => {
31 'code' => bless( {
32 'class' => 'XML::Pastor::Test::Type::Code',
33 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
34 'name' => 'code',
35 'scope' => 'local',
36 'targetNamespace' => 'http://www.example.com/country',
37 'type' => 'Code|http://www.example.com/country',
38 'use' => 'required'
39 }, 'XML::Pastor::Schema::Attribute' )
40 },
41 'attributePrefix' => '_',
42 'attributes' => [
43 'code'
44 ],
45 'baseClasses' => [
46 'XML::Pastor::ComplexType'
47 ],
48 'class' => 'XML::Pastor::Test::Type::City',
49 'contentType' => 'complex',
50 'elementInfo' => {
51 'name' => bless( {
52 'class' => 'XML::Pastor::Builtin::string',
53 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
54 'minOccurs' => '0',
55 'name' => 'name',
56 'scope' => 'local',
57 'targetNamespace' => 'http://www.example.com/country',
58 'type' => 'string|http://www.w3.org/2001/XMLSchema'
59 }, 'XML::Pastor::Schema::Element' ),
60 'population' => bless( {
61 'class' => 'XML::Pastor::Test::Type::Population',
62 'definition' => bless( {
63 'baseClasses' => [
64 'XML::Pastor::Test::Type::Population',
65 'XML::Pastor::Element'
66 ],
67 'class' => 'XML::Pastor::Test::population',
68 'isRedefinable' => 1,
69 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
70 'name' => 'population',
71 'scope' => 'global',
72 'targetNamespace' => 'http://www.example.com/country',
73 'type' => 'Population|http://www.example.com/country'
74 }, 'XML::Pastor::Schema::Element' ),
75 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
76 'minOccurs' => '0',
77 'name' => 'population',
78 'nameIsAutoGenerated' => 1,
79 'ref' => 'population|http://www.example.com/country',
80 'scope' => 'local',
81 'targetNamespace' => 'http://www.example.com/country'
82 }, 'XML::Pastor::Schema::Element' )
83 },
84 'elements' => [
85 'name',
86 'population'
87 ],
88 'isRedefinable' => 1,
89 'metaClass' => 'XML::Pastor::Test::Pastor::Meta',
90 'name' => 'City',
91 'scope' => 'global',
92 'targetNamespace' => 'http://www.example.com/country'
93 }, 'XML::Pastor::Schema::ComplexType' ) );
94  
95 1 1;
96  
97  
98 __END__
« test/out/lib/XML/Pastor/Test/Type/Country_name.pm ↑ Summary test/out/lib/XML/Pastor/Test/Type/Country.pm »