/
View dependency graph
Depends on
- perl (perl)
- debhelper-compat, libsub-uplevel-perl
Used by
- ciphersaber 1.01-2.2
- libamazon-sqs-simple-perl 2.07-1.1
- libarchive-any-perl 0.0946-1
- libaudio-scan-perl 1.13-1
- libbio-chado-schema-perl 0.20000-3
- libbio-db-biofetch-perl 1.7.3-4
- libcatalyst-plugin-session-store-dbic-perl 0.14-4
- libcatmandu-mab2-perl 0.24-3
- libcatmandu-marc-perl 1.320-1
- libcatmandu-store-mongodb-perl 0.0806-1
- libcgi-application-plugin-authentication-perl 0.25+~cs0.5-1
- libcgi-application-plugin-authorization-perl 0.07+~cs0.1-1
- libcgi-pm-perl 4.72-1
- libchart-perl 2.403.9-1
- libchi-driver-memcached-perl 0.16-2
- libchi-driver-redis-perl 0.10-4
- libchi-perl 0.61-1
- libclass-dbi-plugin-pager-perl 0.566-4
- libconfig-model-backend-augeas-perl 0.126-1
- libconfig-model-lcdproc-perl 2.056-1
Show 54 more
- libconfig-model-perl 2.165-1
- libconfig-model-tester-perl 4.010-1
- libconfig-zomg-perl 1.000000-3
- libconfigreader-simple-perl 1.298-1
- libdata-ical-datetime-perl 0.82-4
- libdata-ical-perl 0.24+dfsg-2
- libdbix-class-perl 0.082844-1
- libdbix-class-resultset-recursiveupdate-perl 0.45-1
- libdbix-class-schema-loader-perl 0.07053-1
- libdbm-deep-perl 2.0019-1
- libdevel-declare-perl 0.006022-1
- libdirectory-scratch-structured-perl 0.04-3
- libeval-context-perl 0.09.11-7
- libfennec-perl 2.018-2
- libgraphics-toolkit-color-perl 1.97.2-1
- libgravatar-url-perl 1.07-2
- libhtml-formhandler-perl 0.40068-2
- libinline-c-perl 0.82-2
- libinline-perl 0.87-1
- libjifty-dbi-perl 0.78-3
- liblog-dispatch-filerotate-perl 1.38-1
- libmarc-xml-perl 1.0.5-2
- libmath-prime-util-perl 0.74-1
- libmath-random-secure-perl 0.080001-1.1
- libmediawiki-bot-perl 5.007000-1
- libmethod-signatures-perl 20170211-4
- libparallel-forkmanager-perl 2.04-1
- libparse-edid-perl 1.0.7-2
- libparse-mediawikidump-perl 1.0.6-4
- libparse-recdescent-perl 1.967015+dfsg-4
- libprometheus-tiny-perl 0.011-1
- libprometheus-tiny-shared-perl 0.027-1
- librdf-prefixes-perl 0.005-5
- libsereal-decoder-perl 5.006+ds-1
- libsereal-encoder-perl 5.006+ds-1
- libsereal-perl 5.006-1
- libsoap-lite-perl 1.27-3
- libsoap-wsdl-perl 3.004-2
- libsocket-getaddrinfo-perl 0.22-6
- libsql-abstract-classic-perl 1.91-4
- libsql-abstract-perl 2.000001-2
- libtest-databaserow-perl 2.04-2
- libtest-mockdbi-perl 0.70-3
- libtest-mockobject-perl 1.20200122-4
- libtest-most-perl 0.42-1
- libtext-mediawikiformat-perl 1.04-3
- libtext-micromason-perl 2.23-5
- libtime-y2038-perl 20100403-7
- libutf8-all-perl 0.026-1
- libxml-rss-libxml-perl 0.3105+dfsg-4
- libxml-struct-perl 0.27-3
- libconfig-model-dpkg-perl 3.026
- libconfig-model-perl 2.166-1
- libhtml-formhandler-perl 0.40068-3
README (full)
Test/Warn version 0.37
======================
INSTALLATION
To install this module type the following:
cpan Test::Warn
or
perl Makefile.PL
make
make test
make install
DEPENDENCIES
This module requires these other modules and libraries:
Test::Builder
Sub::Uplevel
File::Spec
SYNOPSIS
use Test::Warn;
warning_is {foo(-dri => "/")} "Unknown Parameter 'dri'", "dri != dir gives warning";
warnings_are {bar(1,1)} ["Width very small", "Height very small"];
warning_is {add(2,2)} undef, "No warning to calc 2+2"; # or
warnings_are {add(2,2)} [], "No warning to calc 2+2"; # what reads better :-)
warning_like {foo(-dri => "/"} qr/unknown param/i, "an unknown parameter test";
warnings_like {bar(1,1)} [qr/width.*small/i, qr/height.*small/i];
warning_is {foo()} {carped => 'didn't found the right parameters'};
warnings_like {foo()} [qr/undefined/,qr/undefined/,{carped => qr/no result/i}];
warning_like {foo(undef)} 'uninitialized';
warning_like {bar(file => '/etc/passwd')} 'io';
warning_like {eval q/"$x"; $x;/}
[qw/void uninitialized/],
"some warnings at compile time";
DESCRIPTION
This module provides a few convenience methods for testing warning based
code.
If you are not already familiar with the Test::More manpage now would be
the time to go take a look.
FUNCTIONS - OVERVIEW
warning_is BLOCK STRING, TEST_NAME
warnings_are BLOCK ARRAYREF, TEST_NAME
warning_like BLOCK REGEXP, TEST_NAME
warning_like BLOCK STRING, TEST_NAME
warnings_like BLOCK ARRAYREF, TEST_NAME
SEE ALSO
Have a look to the similar Test::Exception module.
THANKS
Many thanks to Adrian Howard, chromatic and Michael G. Schwern, who have
given me a lot of ideas.
AUTHOR
Janek Schleicher, <[email protected]>
COPYRIGHT AND LICENSE
Copyright 2002 by Janek Schleicher
Copyright 2007-2016 by Alexandr Ciornii
Copyright 2016-2018 by Janek Schleicher
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
| dir | debian/ |
| dir | t/ |
| file | Changes |
| file | MANIFEST |
| file | META.json |
| file | META.yml |
| file | Makefile.PL |
| file | README |
| file | Warn.pm |