debian/0000755000000000000000000000000012154457327007200 5ustar debian/rules0000755000000000000000000000003612154457327010257 0ustar #!/usr/bin/make -f %: dh $@ debian/control0000644000000000000000000000227312154457327010607 0ustar Source: libtest-warn-perl Maintainer: Debian Perl Group Uploaders: Jay Bonci , Damyan Ivanov , Nicholas Bamber , gregor herrmann , Alessandro Ghedini Section: perl Priority: optional Build-Depends: debhelper (>= 8) Build-Depends-Indep: perl, libsub-uplevel-perl, libtree-dagnode-perl, libtest-pod-perl Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-perl/packages/libtest-warn-perl.git Vcs-Git: git://anonscm.debian.org/pkg-perl/packages/libtest-warn-perl.git Homepage: https://metacpan.org/release/Test-Warn/ Package: libtest-warn-perl Architecture: all Depends: ${misc:Depends}, ${perl:Depends}, libsub-uplevel-perl, perl, libtree-dagnode-perl Description: test module for checking which warnings are generated Test::Warn provides an easy way to test which warnings are thrown in some perl code. It is compatible with the Test::More family of utilities and similar to Test::Exception. debian/source/0000755000000000000000000000000012154457327010500 5ustar debian/source/format0000644000000000000000000000001412154457327011706 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001170612154457327011057 0ustar libtest-warn-perl (0.24-1) unstable; urgency=low [ Ansgar Burchardt ] * debian/control: Convert Vcs-* fields to Git. [ Alessandro Ghedini ] * New upstream release * Email change: Alessandro Ghedini -> ghedo@debian.org * Update debian/copyright format as in Debian Policy 3.9.3 [ gregor herrmann ] * debian/control: update {versioned,alternative} (build) dependencies. [ Salvatore Bonaccorso ] * Change search.cpan.org based URIs to metacpan.org based URIs [ gregor herrmann ] * This release fixes "FTBFS with perl 5.18: test failure" (Closes: #711270) * Refresh language.patch, partly merged upstream. * Update years of packagin copyright. * Set Standards-Version to 3.9.4 (no further changes). -- gregor herrmann Sat, 08 Jun 2013 00:29:14 +0200 libtest-warn-perl (0.23-1) unstable; urgency=low [ Nicholas Bamber ] * New upstream release (closes: #629292) * Updated copyright [ Alessandro Ghedini ] * Bump debhelper compat level to 8 * Bump Standards-Version to 3.9.2 (no changes needed) * Remove README.source * Add myself to Uploaders -- Alessandro Ghedini Wed, 15 Jun 2011 22:35:48 +0200 libtest-warn-perl (0.22-1) unstable; urgency=low [ Nicholas Bamber ] * New upstream release * Upped standards version to 3.9.1 * Added myself to Uploaders * Removed quilt as a dependency and added debian/source/format * Refreshed copyright * Refreshed description * Reviewed language.patch line by line. * Removed '--with quilt' from debian rules [ gregor herrmann ] * debian/control: lower debhelper build dependency to 7; remove version from libsub-uplevel-perl (build) dependency. -- Nicholas Bamber Thu, 23 Sep 2010 09:38:15 +0100 libtest-warn-perl (0.21-1) unstable; urgency=low [ gregor herrmann ] * debian/control: Changed: Switched Vcs-Browser field to ViewSVN (source stanza). * debian/control: Added: ${misc:Depends} to Depends: field. [ Salvatore Bonaccorso ] * debian/control: Changed: Replace versioned (build-)dependency on perl (>= 5.6.0-{12,16}) with an unversioned dependency on perl (as permitted by Debian Policy 3.8.3). [ Damyan Ivanov ] * debian/watch: use the common CPAN pattern * New upstream release + adjust language.patch + tests no longer fail. Closes: #545668 -- FTBFS + drop libtest-exception-perl and libarray-compare-perl from (build-) dependencies + add new upstream copyright holder * language.patch: note that the patch was forwarded * use dh --with quilt 3-liner; bump debhelper and quilt build-dependency * bump Standards-Version to 3.8.3 (no changes needed) * add myself to Uploaders -- Damyan Ivanov Tue, 08 Sep 2009 18:02:27 +0300 libtest-warn-perl (0.11-1) unstable; urgency=low * debian/control: Added: Vcs-Svn field (source stanza); Vcs-Browser field (source stanza); Homepage field (source stanza). * Set Maintainer to Debian Perl Group. * Use dist-based URL in debian/watch. * Refresh debian/rules, no functional changes. * Split out changes against upstream code into a patch; add quilt framework. * New upstream release. * Refresh language.patch. * debian/copyright: copy copyright/license information verbatim from upstream source, update pointer to common licenses on Debian systems. * Set debhelper compatibility level to 5. * Set Standards-Version to 3.8.0; add debian/REAMDE.source to document quilt usage. * debian/control: - wrap long line in debian/control - make (build) dependency on libsub-uplevel-perl versioned - split build dependencies between Build-Depends and Build-Depends-Indep - add /me to Uploaders -- gregor herrmann Thu, 10 Jul 2008 20:40:17 +0200 libtest-warn-perl (0.10-1) unstable; urgency=low * New upstream release * Acknowledge NMU. Thanks Marc. (Closes: #356829) * Fixes debian/watch file so uscan will actually work * Partially took patch from Era Eriksson to clean up some manpage language. Thanks! (Closes: #322351) * Updated debian-policy to version 3.7.2.2 (No other changes) * Added libtest-pod-perl for Build-Depends so test won't skip * Changed Build-Depends-Indep to Build-Depends to satisfy lintian * Changed make clean check to satisfy lintian warning -- Jay Bonci Fri, 29 Jun 2007 08:04:42 -0400 libtest-warn-perl (0.08-2.1) unstable; urgency=low * Non-maintainer upload. * debian/control: Test::Builder::Tester is now in libtest-simple-perl. * Using the newer module fixes the FTBFS. (Closes: #356829) -- Marc 'HE' Brockschmidt Sun, 23 Apr 2006 16:17:44 +0200 libtest-warn-perl (0.08-2) unstable; urgency=low * Adds debian/watch so uscan will actually work -- Jay Bonci Mon, 11 Oct 2004 02:34:25 -0400 libtest-warn-perl (0.08-1) unstable; urgency=low * Initial Release. (Closes: #212632) -- Jay Bonci Tue, 11 Nov 2003 15:07:52 -0500 debian/compat0000644000000000000000000000000212154457327010376 0ustar 8 debian/patches/0000755000000000000000000000000012154457327010627 5ustar debian/patches/series0000644000000000000000000000001712154457327012042 0ustar language.patch debian/patches/language.patch0000644000000000000000000001271112154457327013435 0ustar Author: Jay Bonci Description: Patch from Era Eriksson to clean up some manpage language Bug-Debian: #322351 Forwarded: https://rt.cpan.org/Ticket/Display.html?id=49519 Reviewed-by: Nicholas Bamber Reviewed-by: gregor herrmann Last-Update: 2013-06-08 --- a/Warn.pm +++ b/Warn.pm @@ -31,9 +31,9 @@ A good style of Perl programming calls for a lot of diverse regression tests. -This module provides a few convenience methods for testing warning based code. +This module provides a few convenience methods for testing warning based-code. -If you are not already familiar with the Test::More manpage +If you are not already familiar with the L manpage, now would be the time to go take a look. =head2 FUNCTIONS @@ -49,7 +49,7 @@ Another way to say that there are no warnings in the block is C. -If you want to test for a warning given by Carp, +If you want to test for a warning given by Carp you have to write something like: C 'msg'}, "Test for a carped warning">. The test will fail if a "normal" warning is found instead of a "carped" one. @@ -95,10 +95,10 @@ which in general has the form "WARNING at __FILE__ line __LINE__". So you can check for a warning in the file Foo.pm on line 5 with C. -I don't know whether it's sensful to do such a test :-( -However, you should be prepared as a matching with 'at', 'file', '\d' +Perhaps it is not sensible to perform such a test; +however, you should be aware that matching on a sweeping regular expression or similar will always pass. -Think to the qr/^foo/ if you want to test for warning "foo something" in file foo.pl. +Consider qr/^foo/ if you want to test for warning "foo something" in file foo.pl. You can also write the regexp in a string as "/.../" instead of using the qr/.../ syntax. @@ -106,7 +106,7 @@ as strings without slashes are reserved for warning categories (to match warning categories as can be seen in the perllexwarn man page). -Similar to C, +As with C, you can test for warnings via C with: C qr/bar called too early/i};> @@ -122,17 +122,17 @@ Tests whether a BLOCK gives exactly one warning of the passed category. The categories are grouped in a tree, like it is expressed in perllexwarn. -Note, that they have the hierarchical structure from perl 5.8.0, -wich has a little bit changed to 5.6.1 or earlier versions -(You can access the internal used tree with C<$Test::Warn::Categorization::tree>, -although I wouldn't recommend it) +Note that they have the hierarchical structure from perl 5.8.0, +you can access the internal hierarchy with +C<$Test::Warn::Categorization::tree>, +although it isn't recommended). Thanks to the grouping in a tree, -it's simple possible to test for an 'io' warning, -instead for testing for a 'closed|exec|layer|newline|pipe|unopened' warning. +it's possible to test simply for an 'io' warning, +instead of testing for a 'closed|exec|layer|newline|pipe|unopened' warning. -Note, that warnings occuring at compile time, -can only be catched in an eval block. So +Note that compile-time warnings +can only be caught in an eval block. So warning_like {eval q/"$x"; $x;/} [qw/void uninitialized/], @@ -141,9 +141,8 @@ will work, while it wouldn't work without the eval. -Note, that it isn't possible yet, -to test for own categories, -created with warnings::register. +Note also that it isn't yet possible +to test for categories you created yourself with C. =item warnings_like BLOCK ARRAYREF, TEST_NAME @@ -163,7 +162,7 @@ {carped => qr/bar warning/i}, 'io' ], - "I hope, you'll never have to write a test for so many warnings :-)"; + "I hope you'll never have to write a test for so many warnings :-)"; =item warnings_exist BLOCK STRING|ARRAYREF, TEST_NAME @@ -188,19 +187,19 @@ =head1 BUGS -Please note that warnings with newlines inside are making a lot of trouble. -The only sensible way to handle them is to use are the C or -C methods. Background for these problems is that there is no -really secure way to distinguish between warnings with newlines and a tracing +Please note that warnings with newlines inside are very awkward. +The only sensible way to handle them is to use the C or +C methods. The background is that there is no +really safe way to distinguish between warnings with newlines and a stacktrace. -If a method has it's own warn handler, +If a method has its own warn handler, overwriting C<$SIG{__WARN__}>, my test warning methods won't get these warnings. -The C method isn't extremely tested. -Please use this calling style with higher attention and -tell me if you find a bug. +The C method isn't fully tested. +Please take note if you use this this calling style, +and report any bugs you find. =head1 TODO @@ -213,7 +212,7 @@ =head1 SEE ALSO -Have a look to the similar modules: L, L. +Have a look to the similar L module. L =head1 THANKS debian/copyright0000644000000000000000000000243212154457327011134 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Test-Warn Upstream-Contact: Alexandr Ciornii Source: https://metacpan.org/release/Test-Warn/ Files: * Copyright: 2002, Janek Schleicher 2007-2011, Alexandr Ciornii License: Artistic or GPL-1+ Files: debian/* Copyright: 2003, 2004, 2007, Jay Bonci 2006, Marc 'HE' Brockschmidt 2008-2013, gregor herrmann 2009, Damyan Ivanov 2010-2011, Nicholas Bamber License: Artistic or GPL-1+ License: Artistic This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, which comes with Perl. . On Debian systems, the complete text of the Artistic License can be found in `/usr/share/common-licenses/Artistic'. License: GPL-1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. . On Debian systems, the complete text of version 1 of the General Public License can be found in `/usr/share/common-licenses/GPL-1'. debian/watch0000644000000000000000000000015712154457327010234 0ustar version=3 https://metacpan.org/release/Test-Warn/ .+/Test-Warn-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$