Переглянути джерело

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 9 роки тому
батько
коміт
77dbe5778a
2 змінених файлів з 7 додано та 1 видалено
  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 = (