r27339 - /trunk/dh-make-perl/t/AptContents.t
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Thu Nov 27 08:35:37 UTC 2008
Author: dmn
Date: Thu Nov 27 08:35:35 2008
New Revision: 27339
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=27339
Log:
AptContents.t: add two tests for actual module/file lookups
Modified:
trunk/dh-make-perl/t/AptContents.t
Modified: trunk/dh-make-perl/t/AptContents.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/dh-make-perl/t/AptContents.t?rev=27339&op=diff
==============================================================================
--- trunk/dh-make-perl/t/AptContents.t (original)
+++ trunk/dh-make-perl/t/AptContents.t Thu Nov 27 08:35:35 2008
@@ -54,4 +54,11 @@
is( $apt_contents->source, 'parsed files', 'cache updated' );
+is_deeply(
+ [ $apt_contents->find_file_packages('Moose.pm')],
+ [ 'libmoose-perl' ],
+ 'Moose found by find_file_packages' );
+
+is( $apt_contents->find_perl_module_package('Moose'), 'libmoose-perl', 'Moose fund by module name' );
+
ok( unlink "$Bin/Contents.cache", 'Contents.cache unlnked' );
More information about the Pkg-perl-cvs-commits
mailing list