| 1 | package VSGDR::UnitTest::TestSet::Resx; | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | 1 | ▶ | use 5.010; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 1 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | |||||||||||||||||||||
| 8 | #our \$VERSION = '1.01'; | ||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | |||||||||||||||||||||
| 11 | 1 | ▶ | use parent qw(Clone) ; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 12 | |||||||||||||||||||||
| 13 | 1 | ▶ | use XML::Simple; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 14 | 1 | ▶ | use XML::Quote qw(:all); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | 1 | ▶ | use Data::Dumper ; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 17 | 1 | ▶ | use Carp ; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | 1 | ▶ | use vars qw($AUTOLOAD); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | |||||||||||||||||||||
| 22 | #TODO: 1. Fix more stuff for vs2010 gdr tests. | ||||||||||||||||||||
| 23 | |||||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | sub new { | ||||||||||||||||||||
| 26 | |||||||||||||||||||||
| 27 | 0 | ▶ | local $_ = undef ; | ||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | 0 | my $invocant = shift ; | |||||||||||||||||||
| 30 | 0 | ▶ | my $class = ref($invocant) || $invocant ; | ||||||||||||||||||
|
Condition0%0/3
ref $invocant || $invocant
MC/DC0%0/2
ref $invocant || $invocant
ref $invocant
$invocant
Truth table0%0/3
A || B
A= ref $invocantB= $invocant
| |||||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | 0 | my @elems = @_ ; | |||||||||||||||||||
| 33 | 0 | my $self = bless {}, $class ; | |||||||||||||||||||
| 34 | |||||||||||||||||||||
| 35 | 0 | $self->_init(@elems) ; | |||||||||||||||||||
| 36 | 0 | return $self ; | |||||||||||||||||||
| 37 | } | ||||||||||||||||||||
| 38 | |||||||||||||||||||||
| 39 | |||||||||||||||||||||
| 40 | sub _init { | ||||||||||||||||||||
| 41 | |||||||||||||||||||||
| 42 | 0 | ▶ | local $_ = undef ; | ||||||||||||||||||
|
Subroutine
_init: not called CC=2 SCAR=17.9
| |||||||||||||||||||||
| 43 | |||||||||||||||||||||
| 44 | 0 | my $self = shift ; | |||||||||||||||||||
| 45 | 0 | ▶ | my $class = ref($self) || $self ; | ||||||||||||||||||
|
Condition0%0/3
ref $self || $self
MC/DC0%0/2
ref $self || $self
ref $self
$self
Truth table0%0/3
A || B
A= ref $selfB= $self
| |||||||||||||||||||||
| 46 | 0 | return ; | |||||||||||||||||||
| 47 | |||||||||||||||||||||
| 48 | } | ||||||||||||||||||||
| 49 | |||||||||||||||||||||
| 50 | sub scripts { | ||||||||||||||||||||
| 51 | 0 | ▶ | my $self = shift or croak 'no self'; | ||||||||||||||||||
|
Subroutine
scripts: not called CC=4 SCAR=30.0
Pod
undocumented
Branch: 1 branch
| |||||||||||||||||||||
| 52 | 0 | my $scripts ; | |||||||||||||||||||
| 53 | 0 | ▶ | $scripts = shift if @_; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 54 | 0 | ▶ | if ( defined $scripts ) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 55 | 0 | $self->{SCRIPTS} = $scripts ; | |||||||||||||||||||
| 56 | } | ||||||||||||||||||||
| 57 | 0 | return $self->{SCRIPTS} ; | |||||||||||||||||||
| 58 | } | ||||||||||||||||||||
| 59 | |||||||||||||||||||||
| 60 | |||||||||||||||||||||
| 61 | ## ====================================================== | ||||||||||||||||||||
| 62 | sub serialise { | ||||||||||||||||||||
| 63 | 0 | ▶ | my $self = shift or croak 'no self' ; | ||||||||||||||||||
|
Subroutine
serialise: not called CC=5 SCAR=34.0
Pod
undocumented
Branch: 1 branch
| |||||||||||||||||||||
| 64 | 0 | ▶ | my $file = shift or croak 'no file' ; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 65 | 0 | ▶ | my $object = shift or croak 'no object'; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 66 | |||||||||||||||||||||
| 67 | 0 | my $code = $self->deparse($object); | |||||||||||||||||||
| 68 | |||||||||||||||||||||
| 69 | 0 | my $data; | |||||||||||||||||||
| 70 | 0 | my $fh = new IO::File "> ${file}" ; | |||||||||||||||||||
| 71 | 0 | ▶ | if (defined ${fh} ) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 72 | 0 | print ${fh} $code; | |||||||||||||||||||
| 73 | 0 | $fh->close; | |||||||||||||||||||
| 74 | } | ||||||||||||||||||||
| 75 | else { | ||||||||||||||||||||
| 76 | 0 | croak "Unable to write to ${file}."; | |||||||||||||||||||
| 77 | } | ||||||||||||||||||||
| 78 | 0 | return ; | |||||||||||||||||||
| 79 | } | ||||||||||||||||||||
| 80 | ## ====================================================== | ||||||||||||||||||||
| 81 | sub deserialise { | ||||||||||||||||||||
| 82 | |||||||||||||||||||||
| 83 | 0 | ▶ | my $self = shift or croak 'no self' ; | ||||||||||||||||||
|
Subroutine
deserialise: not called CC=4 SCAR=30.0
Pod
undocumented
Branch: 1 branch
| |||||||||||||||||||||
| 84 | 0 | ▶ | my $file = shift or croak 'no file' ; | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 85 | 0 | my $data; | |||||||||||||||||||
| 86 | 0 | my $fh = new IO::File; | |||||||||||||||||||
| 87 | 0 | ▶ | if ($fh->open("< ${file}")) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 88 | 0 | { local $/ = undef ; $data = <$fh> ; } | |||||||||||||||||||
| 89 | 0 | $fh->close; | |||||||||||||||||||
| 90 | } | ||||||||||||||||||||
| 91 | else { | ||||||||||||||||||||
| 92 | 0 | croak "Unable to read from ${file}."; | |||||||||||||||||||
| 93 | } | ||||||||||||||||||||
| 94 | 0 | my $object = $self->parse($data); | |||||||||||||||||||
| 95 | 0 | return ${object} ; | |||||||||||||||||||
| 96 | } | ||||||||||||||||||||
| 97 | ## ====================================================== | ||||||||||||||||||||
| 98 | |||||||||||||||||||||
| 99 | |||||||||||||||||||||
| 100 | sub parse { | ||||||||||||||||||||
| 101 | |||||||||||||||||||||
| 102 | 0 | ▶ | my $self = shift or croak 'no self' ; | ||||||||||||||||||
|
Subroutine
parse: not called CC=5 SCAR=34.0
Pod
undocumented
Branch: 1 branch
| |||||||||||||||||||||
| 103 | 0 | my $code = shift ; | |||||||||||||||||||
| 104 | |||||||||||||||||||||
| 105 | 0 | ▶ | if ( defined $code ) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 106 | 0 | my $ref = XMLin($code,ForceArray=>['data'] ); | |||||||||||||||||||
| 107 | 0 | my %res = () ; | |||||||||||||||||||
| 108 | 0 | foreach my $k ( keys %{$ref->{data}} ) { | |||||||||||||||||||
| 109 | 0 | ( my $newKey = $k ) =~ s{\.SqlScript$}{}x ; | |||||||||||||||||||
| 110 | 0 | ▶ | if ( ref($ref->{data}->{$k}->{value}) ne 'HASH' ) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 111 | 0 | $res{$newKey} = $ref->{data}->{$k}->{value} ; | |||||||||||||||||||
| 112 | } | ||||||||||||||||||||
| 113 | else { | ||||||||||||||||||||
| 114 | # warn 'Something strange with XMLin again' ; | ||||||||||||||||||||
| 115 | } | ||||||||||||||||||||
| 116 | } | ||||||||||||||||||||
| 117 | 0 | $self->{SCRIPTS} = \%res ; | |||||||||||||||||||
| 118 | }; | ||||||||||||||||||||
| 119 | |||||||||||||||||||||
| 120 | 0 | return $self->{SCRIPTS} ; | |||||||||||||||||||
| 121 | } | ||||||||||||||||||||
| 122 | |||||||||||||||||||||
| 123 | sub deparse { | ||||||||||||||||||||
| 124 | 0 | ▶ | my $self = shift or croak 'no self' ; | ||||||||||||||||||
|
Subroutine
deparse: not called CC=2 SCAR=17.9
Pod
undocumented
Branch: 1 branch
| |||||||||||||||||||||
| 125 | 0 | my $code = shift ; | |||||||||||||||||||
| 126 | |||||||||||||||||||||
| 127 | return $self->xmlHeader() . | ||||||||||||||||||||
| 128 | 0 | $self->xmlTests($self->{SCRIPTS}) . | |||||||||||||||||||
| 129 | $self->xmlFooter() ; | ||||||||||||||||||||
| 130 | |||||||||||||||||||||
| 131 | } | ||||||||||||||||||||
| 132 | |||||||||||||||||||||
| 133 | sub xmlTests { | ||||||||||||||||||||
| 134 | 0 | ▶ | my $self = shift or croak 'no self' ; | ||||||||||||||||||
|
Subroutine
xmlTests: not called CC=4 SCAR=30.0
Pod
undocumented
Branch: 1 branch
| |||||||||||||||||||||
| 135 | 0 | ▶ | my $resSet = shift or croak 'no resources' ; # ref to a has containing test name - sql pairs | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 136 | |||||||||||||||||||||
| 137 | 0 | my $result = "" ; | |||||||||||||||||||
| 138 | |||||||||||||||||||||
| 139 | 0 | foreach my $k ( keys %$resSet) { | |||||||||||||||||||
| 140 | 0 | $result .= ' <data name="' . $k . '.SqlScript" xml:space="preserve">'. "\n"; | |||||||||||||||||||
| 141 | # $result .= " <value>\n" ; | ||||||||||||||||||||
| 142 | 0 | $result .= " <value>" ; | |||||||||||||||||||
| 143 | 0 | $result .= xml_quote_min($$resSet{$k}) ; | |||||||||||||||||||
| 144 | # $result .= xml_quote($$resSet{$k}) ; | ||||||||||||||||||||
| 145 | 0 | $result .= "</value>\n" ; | |||||||||||||||||||
| 146 | 0 | $result .= " </data>\n" ; | |||||||||||||||||||
| 147 | } | ||||||||||||||||||||
| 148 | 0 | return $result ; | |||||||||||||||||||
| 149 | } | ||||||||||||||||||||
| 150 | |||||||||||||||||||||
| 151 | sub xmlHeader { | ||||||||||||||||||||
| 152 | 0 | ▶ | my $self = shift or croak 'no self' ; | ||||||||||||||||||
|
Subroutine
xmlHeader: not called CC=2 SCAR=17.9
Pod
undocumented
Branch: 1 branch
| |||||||||||||||||||||
| 153 | 0 | return <<'EOH'; | |||||||||||||||||||
| 154 | <?xml version="1.0" encoding="utf-8"?> | ||||||||||||||||||||
| 155 | <root> | ||||||||||||||||||||
| 156 | <!-- | ||||||||||||||||||||
| 157 | Microsoft ResX Schema | ||||||||||||||||||||
| 158 | |||||||||||||||||||||
| 159 | Version 2.0 | ||||||||||||||||||||
| 160 | |||||||||||||||||||||
| 161 | The primary goals of this format is to allow a simple XML format | ||||||||||||||||||||
| 162 | that is mostly human readable. The generation and parsing of the | ||||||||||||||||||||
| 163 | various data types are done through the TypeConverter classes | ||||||||||||||||||||
| 164 | associated with the data types. | ||||||||||||||||||||
| 165 | |||||||||||||||||||||
| 166 | Example: | ||||||||||||||||||||
| 167 | |||||||||||||||||||||
| 168 | ... ado.net/XML headers & schema ... | ||||||||||||||||||||
| 169 | <resheader name="resmimetype">text/microsoft-resx</resheader> | ||||||||||||||||||||
| 170 | <resheader name="version">2.0</resheader> | ||||||||||||||||||||
| 171 | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||||||||||||||||||||
| 172 | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||||||||||||||||||||
| 173 | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||||||||||||||||||||
| 174 | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||||||||||||||||||||
| 175 | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||||||||||||||||||||
| 176 | <value>[base64 mime encoded serialized .NET Framework object]</value> | ||||||||||||||||||||
| 177 | </data> | ||||||||||||||||||||
| 178 | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||||||||||||||||||||
| 179 | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||||||||||||||||||||
| 180 | <comment>This is a comment</comment> | ||||||||||||||||||||
| 181 | </data> | ||||||||||||||||||||
| 182 | |||||||||||||||||||||
| 183 | There are any number of "resheader" rows that contain simple | ||||||||||||||||||||
| 184 | name/value pairs. | ||||||||||||||||||||
| 185 | |||||||||||||||||||||
| 186 | Each data row contains a name, and value. The row also contains a | ||||||||||||||||||||
| 187 | type or mimetype. Type corresponds to a .NET class that support | ||||||||||||||||||||
| 188 | text/value conversion through the TypeConverter architecture. | ||||||||||||||||||||
| 189 | Classes that don't support this are serialized and stored with the | ||||||||||||||||||||
| 190 | mimetype set. | ||||||||||||||||||||
| 191 | |||||||||||||||||||||
| 192 | The mimetype is used for serialized objects, and tells the | ||||||||||||||||||||
| 193 | ResXResourceReader how to depersist the object. This is currently not | ||||||||||||||||||||
| 194 | extensible. For a given mimetype the value must be set accordingly: | ||||||||||||||||||||
| 195 | |||||||||||||||||||||
| 196 | Note - application/x-microsoft.net.object.binary.base64 is the format | ||||||||||||||||||||
| 197 | that the ResXResourceWriter will generate, however the reader can | ||||||||||||||||||||
| 198 | read any of the formats listed below. | ||||||||||||||||||||
| 199 | |||||||||||||||||||||
| 200 | mimetype: application/x-microsoft.net.object.binary.base64 | ||||||||||||||||||||
| 201 | value : The object must be serialized with | ||||||||||||||||||||
| 202 | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | ||||||||||||||||||||
| 203 | : and then encoded with base64 encoding. | ||||||||||||||||||||
| 204 | |||||||||||||||||||||
| 205 | mimetype: application/x-microsoft.net.object.soap.base64 | ||||||||||||||||||||
| 206 | value : The object must be serialized with | ||||||||||||||||||||
| 207 | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||||||||||||||||||||
| 208 | : and then encoded with base64 encoding. | ||||||||||||||||||||
| 209 | |||||||||||||||||||||
| 210 | mimetype: application/x-microsoft.net.object.bytearray.base64 | ||||||||||||||||||||
| 211 | value : The object must be serialized into a byte array | ||||||||||||||||||||
| 212 | : using a System.ComponentModel.TypeConverter | ||||||||||||||||||||
| 213 | : and then encoded with base64 encoding. | ||||||||||||||||||||
| 214 | --> | ||||||||||||||||||||
| 215 | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||||||||||||||||||||
| 216 | <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | ||||||||||||||||||||
| 217 | <xsd:element name="root" msdata:IsDataSet="true"> | ||||||||||||||||||||
| 218 | <xsd:complexType> | ||||||||||||||||||||
| 219 | <xsd:choice maxOccurs="unbounded"> | ||||||||||||||||||||
| 220 | <xsd:element name="metadata"> | ||||||||||||||||||||
| 221 | <xsd:complexType> | ||||||||||||||||||||
| 222 | <xsd:sequence> | ||||||||||||||||||||
| 223 | <xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||||||||||||||||||||
| 224 | </xsd:sequence> | ||||||||||||||||||||
| 225 | <xsd:attribute name="name" use="required" type="xsd:string" /> | ||||||||||||||||||||
| 226 | <xsd:attribute name="type" type="xsd:string" /> | ||||||||||||||||||||
| 227 | <xsd:attribute name="mimetype" type="xsd:string" /> | ||||||||||||||||||||
| 228 | <xsd:attribute ref="xml:space" /> | ||||||||||||||||||||
| 229 | </xsd:complexType> | ||||||||||||||||||||
| 230 | </xsd:element> | ||||||||||||||||||||
| 231 | <xsd:element name="assembly"> | ||||||||||||||||||||
| 232 | <xsd:complexType> | ||||||||||||||||||||
| 233 | <xsd:attribute name="alias" type="xsd:string" /> | ||||||||||||||||||||
| 234 | <xsd:attribute name="name" type="xsd:string" /> | ||||||||||||||||||||
| 235 | </xsd:complexType> | ||||||||||||||||||||
| 236 | </xsd:element> | ||||||||||||||||||||
| 237 | <xsd:element name="data"> | ||||||||||||||||||||
| 238 | <xsd:complexType> | ||||||||||||||||||||
| 239 | <xsd:sequence> | ||||||||||||||||||||
| 240 | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||||||||||||||||||
| 241 | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||||||||||||||||||||
| 242 | </xsd:sequence> | ||||||||||||||||||||
| 243 | <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | ||||||||||||||||||||
| 244 | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||||||||||||||||||||
| 245 | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||||||||||||||||||||
| 246 | <xsd:attribute ref="xml:space" /> | ||||||||||||||||||||
| 247 | </xsd:complexType> | ||||||||||||||||||||
| 248 | </xsd:element> | ||||||||||||||||||||
| 249 | <xsd:element name="resheader"> | ||||||||||||||||||||
| 250 | <xsd:complexType> | ||||||||||||||||||||
| 251 | <xsd:sequence> | ||||||||||||||||||||
| 252 | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||||||||||||||||||||
| 253 | </xsd:sequence> | ||||||||||||||||||||
| 254 | <xsd:attribute name="name" type="xsd:string" use="required" /> | ||||||||||||||||||||
| 255 | </xsd:complexType> | ||||||||||||||||||||
| 256 | </xsd:element> | ||||||||||||||||||||
| 257 | </xsd:choice> | ||||||||||||||||||||
| 258 | </xsd:complexType> | ||||||||||||||||||||
| 259 | </xsd:element> | ||||||||||||||||||||
| 260 | </xsd:schema> | ||||||||||||||||||||
| 261 | <resheader name="resmimetype"> | ||||||||||||||||||||
| 262 | <value>text/microsoft-resx</value> | ||||||||||||||||||||
| 263 | </resheader> | ||||||||||||||||||||
| 264 | <resheader name="version"> | ||||||||||||||||||||
| 265 | <value>2.0</value> | ||||||||||||||||||||
| 266 | </resheader> | ||||||||||||||||||||
| 267 | <resheader name="reader"> | ||||||||||||||||||||
| 268 | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||||||||||||||||||
| 269 | </resheader> | ||||||||||||||||||||
| 270 | <resheader name="writer"> | ||||||||||||||||||||
| 271 | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||||||||||||||||||||
| 272 | </resheader> | ||||||||||||||||||||
| 273 | EOH | ||||||||||||||||||||
| 274 | #' | ||||||||||||||||||||
| 275 | } | ||||||||||||||||||||
| 276 | |||||||||||||||||||||
| 277 | sub xmlHeaderMoreUnfortunateStuffToHaveToHandle { | ||||||||||||||||||||
| 278 | 0 | ▶ | my $self = shift or croak 'no self' ; | ||||||||||||||||||
|
Subroutine
xmlHeaderMoreUnfortunateStuffToHaveToHandle: not called CC=2 SCAR=17.9
Pod
undocumented
Branch: 1 branch
| |||||||||||||||||||||
| 279 | 0 | return <<'EOF'; | |||||||||||||||||||
| 280 | <metadata name="checksumCondition1.Configuration" xml:space="preserve"> | ||||||||||||||||||||
| 281 | <value>Press to configure</value> | ||||||||||||||||||||
| 282 | </metadata> | ||||||||||||||||||||
| 283 | <metadata name="expectedSchemaCondition1.Configuration" xml:space="preserve"> | ||||||||||||||||||||
| 284 | <value>Press to configure</value> | ||||||||||||||||||||
| 285 | </metadata> | ||||||||||||||||||||
| 286 | <data name="expectedSchemaCondition1.Schema" mimetype="application/x-microsoft.net.object.binary.base64"> | ||||||||||||||||||||
| 287 | <value> | ||||||||||||||||||||
| 288 | AAEAAAD/////AQAAAAAAAAAMAgAAAE5TeXN0ZW0uRGF0YSwgVmVyc2lvbj00LjAuMC4wLCBDdWx0dXJl | ||||||||||||||||||||
| 289 | PW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAABNTeXN0ZW0uRGF0YS5E | ||||||||||||||||||||
| 290 | YXRhU2V0AwAAABdEYXRhU2V0LlJlbW90aW5nVmVyc2lvbglYbWxTY2hlbWELWG1sRGlmZkdyYW0DAQEO | ||||||||||||||||||||
| 291 | U3lzdGVtLlZlcnNpb24CAAAACQMAAAAGBAAAAL8SPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0i | ||||||||||||||||||||
| 292 | dXRmLTE2Ij8+DQo8eHM6c2NoZW1hIGlkPSJOZXdEYXRhU2V0IiB4bWxucz0iIiB4bWxuczp4cz0iaHR0 | ||||||||||||||||||||
| 293 | cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOm1zZGF0YT0idXJuOnNjaGVtYXMtbWlj | ||||||||||||||||||||
| 294 | cm9zb2Z0LWNvbTp4bWwtbXNkYXRhIj4NCiAgPHhzOmVsZW1lbnQgbmFtZT0iTmV3RGF0YVNldCIgbXNk | ||||||||||||||||||||
| 295 | YXRhOklzRGF0YVNldD0idHJ1ZSIgbXNkYXRhOlVzZUN1cnJlbnRMb2NhbGU9InRydWUiPg0KICAgIDx4 | ||||||||||||||||||||
| 296 | czpjb21wbGV4VHlwZT4NCiAgICAgIDx4czpjaG9pY2UgbWluT2NjdXJzPSIwIiBtYXhPY2N1cnM9InVu | ||||||||||||||||||||
| 297 | Ym91bmRlZCI+DQogICAgICAgIDx4czplbGVtZW50IG5hbWU9IlRhYmxlIj4NCiAgICAgICAgICA8eHM6 | ||||||||||||||||||||
| 298 | Y29tcGxleFR5cGU+DQogICAgICAgICAgICA8eHM6c2VxdWVuY2U+DQogICAgICAgICAgICAgIDx4czpl | ||||||||||||||||||||
| 299 | bGVtZW50IG5hbWU9IkNvbHVtbjEiIHR5cGU9InhzOmludCIgbXNkYXRhOnRhcmdldE5hbWVzcGFjZT0i | ||||||||||||||||||||
| 300 | IiBtaW5PY2N1cnM9IjAiIC8+DQogICAgICAgICAgICA8L3hzOnNlcXVlbmNlPg0KICAgICAgICAgIDwv | ||||||||||||||||||||
| 301 | eHM6Y29tcGxleFR5cGU+DQogICAgICAgIDwveHM6ZWxlbWVudD4NCiAgICAgICAgPHhzOmVsZW1lbnQg | ||||||||||||||||||||
| 302 | bmFtZT0iVGFibGUxIj4NCiAgICAgICAgICA8eHM6Y29tcGxleFR5cGU+DQogICAgICAgICAgICA8eHM6 | ||||||||||||||||||||
| 303 | c2VxdWVuY2U+DQogICAgICAgICAgICAgIDx4czplbGVtZW50IG5hbWU9IlBlcnNvbklkIiB0eXBlPSJ4 | ||||||||||||||||||||
| 304 | czppbnQiIG1zZGF0YTp0YXJnZXROYW1lc3BhY2U9IiIgbWluT2NjdXJzPSIwIiAvPg0KICAgICAgICAg | ||||||||||||||||||||
| 305 | ICAgICA8eHM6ZWxlbWVudCBuYW1lPSJUaXRsZUlkIiB0eXBlPSJ4czppbnQiIG1zZGF0YTp0YXJnZXRO | ||||||||||||||||||||
| 306 | YW1lc3BhY2U9IiIgbWluT2NjdXJzPSIwIiAvPg0KICAgICAgICAgICAgICA8eHM6ZWxlbWVudCBuYW1l | ||||||||||||||||||||
| 307 | PSJOYW1lU3VmZml4SWQiIHR5cGU9InhzOmludCIgbXNkYXRhOnRhcmdldE5hbWVzcGFjZT0iIiBtaW5P | ||||||||||||||||||||
| 308 | Y2N1cnM9IjAiIC8+DQogICAgICAgICAgICAgIDx4czplbGVtZW50IG5hbWU9IlN1cm5hbWUiIHR5cGU9 | ||||||||||||||||||||
| 309 | InhzOnN0cmluZyIgbXNkYXRhOnRhcmdldE5hbWVzcGFjZT0iIiBtaW5PY2N1cnM9IjAiIC8+DQogICAg | ||||||||||||||||||||
| 310 | ICAgICAgICAgIDx4czplbGVtZW50IG5hbWU9IkZvcmVuYW1lIiB0eXBlPSJ4czpzdHJpbmciIG1zZGF0 | ||||||||||||||||||||
| 311 | YTp0YXJnZXROYW1lc3BhY2U9IiIgbWluT2NjdXJzPSIwIiAvPg0KICAgICAgICAgICAgICA8eHM6ZWxl | ||||||||||||||||||||
| 312 | bWVudCBuYW1lPSJPdGhlcm5hbWUiIHR5cGU9InhzOnN0cmluZyIgbXNkYXRhOnRhcmdldE5hbWVzcGFj | ||||||||||||||||||||
| 313 | ZT0iIiBtaW5PY2N1cnM9IjAiIC8+DQogICAgICAgICAgICAgIDx4czplbGVtZW50IG5hbWU9IlNleCIg | ||||||||||||||||||||
| 314 | dHlwZT0ieHM6c3RyaW5nIiBtc2RhdGE6dGFyZ2V0TmFtZXNwYWNlPSIiIG1pbk9jY3Vycz0iMCIgLz4N | ||||||||||||||||||||
| 315 | CiAgICAgICAgICAgICAgPHhzOmVsZW1lbnQgbmFtZT0iRGVsZXRlZCIgdHlwZT0ieHM6Ym9vbGVhbiIg | ||||||||||||||||||||
| 316 | bXNkYXRhOnRhcmdldE5hbWVzcGFjZT0iIiBtaW5PY2N1cnM9IjAiIC8+DQogICAgICAgICAgICAgIDx4 | ||||||||||||||||||||
| 317 | czplbGVtZW50IG5hbWU9IkNMb2FkSWQiIHR5cGU9InhzOmludCIgbXNkYXRhOnRhcmdldE5hbWVzcGFj | ||||||||||||||||||||
| 318 | ZT0iIiBtaW5PY2N1cnM9IjAiIC8+DQogICAgICAgICAgICAgIDx4czplbGVtZW50IG5hbWU9IkNTcmNJ | ||||||||||||||||||||
| 319 | ZCIgdHlwZT0ieHM6aW50IiBtc2RhdGE6dGFyZ2V0TmFtZXNwYWNlPSIiIG1pbk9jY3Vycz0iMCIgLz4N | ||||||||||||||||||||
| 320 | CiAgICAgICAgICAgICAgPHhzOmVsZW1lbnQgbmFtZT0iVUxvYWRJZCIgdHlwZT0ieHM6aW50IiBtc2Rh | ||||||||||||||||||||
| 321 | dGE6dGFyZ2V0TmFtZXNwYWNlPSIiIG1pbk9jY3Vycz0iMCIgLz4NCiAgICAgICAgICAgICAgPHhzOmVs | ||||||||||||||||||||
| 322 | ZW1lbnQgbmFtZT0iVVNyY0lkIiB0eXBlPSJ4czppbnQiIG1zZGF0YTp0YXJnZXROYW1lc3BhY2U9IiIg | ||||||||||||||||||||
| 323 | bWluT2NjdXJzPSIwIiAvPg0KICAgICAgICAgICAgICA8eHM6ZWxlbWVudCBuYW1lPSJVUHJvY0lkIiB0 | ||||||||||||||||||||
| 324 | eXBlPSJ4czppbnQiIG1zZGF0YTp0YXJnZXROYW1lc3BhY2U9IiIgbWluT2NjdXJzPSIwIiAvPg0KICAg | ||||||||||||||||||||
| 325 | ICAgICAgICAgICA8eHM6ZWxlbWVudCBuYW1lPSJEb0JpcnRoIiB0eXBlPSJ4czpkYXRlVGltZSIgbXNk | ||||||||||||||||||||
| 326 | YXRhOnRhcmdldE5hbWVzcGFjZT0iIiBtaW5PY2N1cnM9IjAiIC8+DQogICAgICAgICAgICAgIDx4czpl | ||||||||||||||||||||
| 327 | bGVtZW50IG5hbWU9IkluZGl2aWR1YWxJZCIgdHlwZT0ieHM6aW50IiBtc2RhdGE6dGFyZ2V0TmFtZXNw | ||||||||||||||||||||
| 328 | YWNlPSIiIG1pbk9jY3Vycz0iMCIgLz4NCiAgICAgICAgICAgIDwveHM6c2VxdWVuY2U+DQogICAgICAg | ||||||||||||||||||||
| 329 | ICAgPC94czpjb21wbGV4VHlwZT4NCiAgICAgICAgPC94czplbGVtZW50Pg0KICAgICAgPC94czpjaG9p | ||||||||||||||||||||
| 330 | Y2U+DQogICAgPC94czpjb21wbGV4VHlwZT4NCiAgPC94czplbGVtZW50Pg0KPC94czpzY2hlbWE+BgUA | ||||||||||||||||||||
| 331 | AACAATxkaWZmZ3I6ZGlmZmdyYW0geG1sbnM6bXNkYXRhPSJ1cm46c2NoZW1hcy1taWNyb3NvZnQtY29t | ||||||||||||||||||||
| 332 | OnhtbC1tc2RhdGEiIHhtbG5zOmRpZmZncj0idXJuOnNjaGVtYXMtbWljcm9zb2Z0LWNvbTp4bWwtZGlm | ||||||||||||||||||||
| 333 | ZmdyYW0tdjEiIC8+BAMAAAAOU3lzdGVtLlZlcnNpb24EAAAABl9NYWpvcgZfTWlub3IGX0J1aWxkCV9S | ||||||||||||||||||||
| 334 | ZXZpc2lvbgAAAAAICAgIAgAAAAAAAAD//////////ws= | ||||||||||||||||||||
| 335 | </value> | ||||||||||||||||||||
| 336 | </data> | ||||||||||||||||||||
| 337 | EOF | ||||||||||||||||||||
| 338 | } | ||||||||||||||||||||
| 339 | |||||||||||||||||||||
| 340 | sub xmlFooter { | ||||||||||||||||||||
| 341 | 0 | ▶ | my $self = shift or croak 'no self' ; | ||||||||||||||||||
|
Subroutine
xmlFooter: not called CC=2 SCAR=17.9
Pod
undocumented
Branch: 1 branch
| |||||||||||||||||||||
| 342 | 0 | return <<'EOF'; | |||||||||||||||||||
| 343 | <metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | ||||||||||||||||||||
| 344 | <value>True</value> | ||||||||||||||||||||
| 345 | </metadata> | ||||||||||||||||||||
| 346 | </root> | ||||||||||||||||||||
| 347 | EOF | ||||||||||||||||||||
| 348 | } | ||||||||||||||||||||
| 349 | |||||||||||||||||||||
| 350 | |||||||||||||||||||||
| 351 | 1 | 1 ; | |||||||||||||||||||
| 352 | |||||||||||||||||||||
| 353 | |||||||||||||||||||||
| 354 | __DATA__ | ||||||||||||||||||||