XML-BindData
view release on metacpan or search on metacpan
---
abstract: 'Bind Perl data structures into XML'
author:
- 'Neil Kirsopp <cpan@pneumatoscopic.net>'
build_requires:
Test::Mock::Simple: '0'
Test::More: '0'
Test::Warnings: '0'
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.014, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
Makefile.PL view on Meta::CPAN
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => 0
},
"DISTNAME" => "XML-BindData",
"LICENSE" => "perl",
"NAME" => "XML::BindData",
"PREREQ_PM" => {
"XML::LibXML" => 0
},
"TEST_REQUIRES" => {
"Test::Mock::Simple" => 0,
"Test::More" => 0,
"Test::Warnings" => 0
},
"VERSION" => "0.3.2",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"Test::Mock::Simple" => 0,
"Test::More" => 0,
"Test::Warnings" => 0,
"XML::LibXML" => 0
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
t/each_off_by_one.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
use Test::Mock::Simple;
use_ok 'XML::BindData';
my $counter = 0;
my $mock = Test::Mock::Simple->new(module => 'XML::BindData');
$mock->add('_get' => sub { $counter++; return []; });
is(
XML::BindData->bind(
'<foo><bar tmpl-each="bar" tmpl-bind="this"/></foo>',
{ bar => [ ] }
),
'<foo></foo>'
);
is($counter, 1, 'Terminated correctly after each');
xml-binddata-0.3.2/META.yml view on Meta::CPAN
---
abstract: 'Bind Perl data structures into XML'
author:
- 'Neil Kirsopp <cpan@pneumatoscopic.net>'
build_requires:
Test::Mock::Simple: '0'
Test::More: '0'
Test::Warnings: '0'
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.014, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
xml-binddata-0.3.2/Makefile.PL view on Meta::CPAN
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => 0
},
"DISTNAME" => "xml-binddata",
"LICENSE" => "perl",
"NAME" => "xml::binddata",
"PREREQ_PM" => {
"XML::LibXML" => 0
},
"TEST_REQUIRES" => {
"Test::Mock::Simple" => 0,
"Test::More" => 0,
"Test::Warnings" => 0
},
"VERSION" => "0.3.2",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"Test::Mock::Simple" => 0,
"Test::More" => 0,
"Test::Warnings" => 0,
"XML::LibXML" => 0
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
xml-binddata-0.3.2/t/each_off_by_one.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
use Test::Mock::Simple;
use_ok 'XML::BindData';
my $counter = 0;
my $mock = Test::Mock::Simple->new(module => 'XML::BindData');
$mock->add('_get' => sub { $counter++; return []; });
is(
XML::BindData->bind(
'<foo><bar tmpl-each="bar" tmpl-bind="this"/></foo>',
{ bar => [ ] }
),
'<foo></foo>'
);
is($counter, 1, 'Terminated correctly after each');
( run in 2.302 seconds using v1.01-cache-2.11-cpan-71847e10f99 )