Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: nwellnhof/XML-LibXML-Cache
base: 6ee8efd786
...
head fork: nwellnhof/XML-LibXML-Cache
compare: 4da3df57d3
  • 4 commits
  • 5 files changed
  • 0 commit comments
  • 1 contributor
Commits on Aug 18, 2012
@nwellnhof Fix comparison of documents in test
Seems that newer version of XML::LibXML overload stringification.
4f1b4cd
@nwellnhof Allow additional dependencies in XML test
On some systems reading of catalog files is caught by the dependency
checker.
5e57951
@nwellnhof Enable POD coverage tests dcf2d79
@nwellnhof Release version 0.11 4da3df5
View
10 Changes
@@ -0,0 +1,10 @@
+Revision history for Perl module XML::LibXML::Cache
+
+0.11 2012-08-18
+ - Fix tests to work with XML::LibXML 1.99 and later
+ - Fix tests to work with XML catalogs
+ - Documentation fixes
+
+0.10 2011-09-10
+ - Initial release
+
View
3  dist.ini
@@ -1,5 +1,5 @@
name = XML-LibXML-Cache
-version = 0.10
+version = 0.11
author = Nick Wellnhofer <wellnhofer@aevum.de>
license = Perl_5
copyright_holder = Nick Wellnhofer
@@ -7,6 +7,7 @@ copyright_holder = Nick Wellnhofer
[@Basic]
[PkgVersion]
+[PodCoverageTests]
[PodSyntaxTests]
[PodWeaver]
View
4 lib/XML/LibXML/Cache/Base.pm
@@ -116,5 +116,9 @@ __END__
Base class for the document and style sheet caches.
+=head1 METHODS
+
+=head2 new
+
=cut
View
35 t/xml.t
@@ -2,7 +2,7 @@
use strict;
use File::Touch;
-use Test::More tests => 7;
+use Test::More tests => 11;
use Test::Deep;
$ENV{XML_CATALOG_FILES} = '';
@@ -26,22 +26,33 @@ isa_ok($cached_rec, 'ARRAY');
my ($cached_doc, $deps) = @$cached_rec;
is($cached_doc, $doc, 'cached doc');
-my $number = re(qr/^\d+\z/);
-my $attrs = [ $number, $number ];
-cmp_deeply($deps, {
- $filename => $attrs,
- $entity_filename => $attrs,
- 't/xml/test01.dtd' => $attrs,
- 't/xml/test01-include.xml' => $attrs,
- 't/xml/test01-missing.xml' => [ -1, -1 ],
-}, 'dependencies');
+my $number = re(qr/^\d+\z/);
+my $numbers = [ $number, $number ];
+
+cmp_deeply($deps->{$filename}, $numbers, 'dependency on self');
+cmp_deeply($deps->{'t/xml/test01.dtd'}, $numbers, 'dependency on dtd');
+cmp_deeply(
+ $deps->{$entity_filename},
+ $numbers,
+ 'dependency on external entity',
+);
+cmp_deeply(
+ $deps->{'t/xml/test01-include.xml'},
+ $numbers,
+ 'dependency on xinclude',
+);
+cmp_deeply(
+ $deps->{'t/xml/test01-missing.xml'},
+ [ -1, -1 ],
+ 'dependency on missing xinclude',
+);
$cached_doc = $cache->parse_file($filename);
-is($cached_doc, $doc, 'cached doc');
+is(int($cached_doc), int($doc), 'cached doc');
$ref = File::Touch->new(mtime => $time, no_create => 1);
$ref->touch($entity_filename);
my $new_doc = $cache->parse_file($filename);
-isnt($new_doc, $doc, 'new doc');
+isnt(int($new_doc), int($doc), 'new doc');
View
4 t/xsl.t
@@ -21,7 +21,7 @@ my $cached_rec = $cache->{cache}{$filename};
isa_ok($cached_rec, 'ARRAY');
my ($cached_ss, $deps) = @$cached_rec;
-is($cached_ss, $stylesheet, 'cached stylesheet');
+is(int($cached_ss), int($stylesheet), 'cached stylesheet');
my $number = re(qr/^\d+\z/);
my $attrs = [ $number, $number ];
@@ -42,5 +42,5 @@ $ref = File::Touch->new(mtime => $time, no_create => 1);
$ref->touch($import_filename);
my $new_ss = $cache->parse_stylesheet_file($filename);
-isnt($new_ss, $stylesheet, 'new stylesheet');
+isnt(int($new_ss), int($stylesheet), 'new stylesheet');

No commit comments for this range

Something went wrong with that request. Please try again.