Skip to content

Commit

Permalink
Merge pull request #6 from ambs/pr/pod-coverage
Browse files Browse the repository at this point in the history
Update POD coverage test to ignore private attributes (#6 from Alberto Simões).
  • Loading branch information
kasei committed Feb 2, 2016
2 parents 3fec902 + f3f9517 commit c4d9ee3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/IRI.pm
@@ -1,5 +1,5 @@
=encoding utf8
=head1 NAME
IRI - Internationalized Resource Identifiers
Expand All @@ -12,12 +12,12 @@ This document describes IRI version 0.004
use IRI;
my $i = IRI->new(value => 'https://example.org:80/index#frag');
my $i = IRI->new(value => 'https://example.org:80/index#frag');
say $i->scheme; # 'https'
say $i->path; # '/index'
my $base = IRI->new(value => "http://www.hestebedg\x{e5}rd.dk/");
my $i = IRI->new(value => '#frag', base => $base);
my $i = IRI->new(value => '#frag', base => $base);
say $i->abs; # 'http://www.hestebedgård.dk/#frag'
=head1 DESCRIPTION
Expand Down
7 changes: 6 additions & 1 deletion xt/pod-coverage.t
Expand Up @@ -8,10 +8,15 @@ use Module::Load::Conditional qw[can_load];
my @modules = all_modules();
foreach my $mod (@modules) {
if (can_load( modules => { $mod => 0 } )) {
pod_coverage_ok($mod, { also_private => [ qr{^[A-Z][A-Z0-9_]*$} ] });
pod_coverage_ok($mod, {
also_private => [ qw.base components has_base value., qr{^[A-Z][A-Z0-9_]*$} ]
});
} else {
note("Ignoring $mod for POD coverage tests (failed to load)");
}
}

done_testing();



0 comments on commit c4d9ee3

Please sign in to comment.