[dpkg] 132/187: test: Ignore POD coverage for partially private modules

Reiner Herrmann reiner at reiner-h.de
Sun Nov 6 12:46:33 UTC 2016


This is an automated email from the git hooks/post-receive script.

deki-guest pushed a commit to branch master
in repository dpkg.

commit 77dbe5778a811218d5308c1adb1838d55ba84565
Author: Guillem Jover <guillem at debian.org>
Date:   Mon Sep 19 00:50:53 2016 +0200

    test: Ignore POD coverage for partially private modules
    
    The Dpkg::Arch and Dpkg::Source::Package modules are partially private,
    and several of its functions are not yet documented as public. Ignore
    these two for now to avoid the expected failures.
---
 debian/changelog | 1 +
 t/pod-coverage.t | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index f5b807b..673b50b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -162,6 +162,7 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
     - Add new unit test for libdpkg error handling.
     - Delete MAKEFLAGS environment variable when testing make invocations.
     - Pass -q to grep command to suppress matched output in pod-coverage.t.
+    - Ignore POD coverage for partially private modules.
   * Build system:
     - Add support for profiling perl modules.
     - Clean up compiler and linker automatic flag usage in configure.
diff --git a/t/pod-coverage.t b/t/pod-coverage.t
index 6289e71..f0afbd3 100644
--- a/t/pod-coverage.t
+++ b/t/pod-coverage.t
@@ -39,8 +39,13 @@ sub all_pod_modules
                                      $File::Find::name) == 0;
 
         $module =~ s{^\Q$File::Find::topdir\E/}{};
+        $module =~ s{/}{::}g;
 
-        push @modules, $module =~ s{/}{::}gr;
+        # Do not check partially private modules.
+        return if $module eq 'Dpkg::Arch';
+        return if $module eq 'Dpkg::Source::Package';
+
+        push @modules, $module;
     };
 
     my %options = (

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list