Kaynağa Gözat

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.
Guillem Jover 10 yıl önce
ebeveyn
işleme
77dbe5778a
2 değiştirilmiş dosya ile 7 ekleme ve 1 silme
  1. 1 0
      debian/changelog
  2. 6 1
      t/pod-coverage.t

+ 1 - 0
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.

+ 6 - 1
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 = (