pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/p5-Test-Differences Import p5-Test-Differences-0.47
details: https://anonhg.NetBSD.org/pkgsrc/rev/d528070c4e17
branches: trunk
changeset: 543825:d528070c4e17
user: abs <abs%pkgsrc.org@localhost>
date: Mon Jun 23 04:04:21 2008 +0000
description:
Import p5-Test-Differences-0.47
When the code you're testing returns multiple lines, records or
data structures and they're just plain wrong, an equivalent to the
Unix diff utility may be just what's needed.
eq_or_diff_...() compares two strings or (limited) data structures
and either emits an ok indication or a side-by-side diff.
Test::Differences is designed to be used with Test.pm and with
Test::Simple, Test::More, and other Test::Builder based testing
modules. As the SYNOPSIS shows, another testing module must be used
as the basis for your test suite.
These functions assume that you are presenting it with "flat"
records, looking like:
- scalars composed of record-per-line
- arrays of scalars,
- arrays of arrays of scalars,
- arrays of hashes containing only scalars
diffstat:
devel/p5-Test-Differences/DESCR | 18 ++++++++++++++++++
devel/p5-Test-Differences/Makefile | 20 ++++++++++++++++++++
devel/p5-Test-Differences/distinfo | 5 +++++
3 files changed, 43 insertions(+), 0 deletions(-)
diffs (55 lines):
diff -r a613bd201802 -r d528070c4e17 devel/p5-Test-Differences/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-Differences/DESCR Mon Jun 23 04:04:21 2008 +0000
@@ -0,0 +1,18 @@
+When the code you're testing returns multiple lines, records or
+data structures and they're just plain wrong, an equivalent to the
+Unix diff utility may be just what's needed.
+
+eq_or_diff_...() compares two strings or (limited) data structures
+and either emits an ok indication or a side-by-side diff.
+Test::Differences is designed to be used with Test.pm and with
+Test::Simple, Test::More, and other Test::Builder based testing
+modules. As the SYNOPSIS shows, another testing module must be used
+as the basis for your test suite.
+
+These functions assume that you are presenting it with "flat"
+records, looking like:
+
+ - scalars composed of record-per-line
+ - arrays of scalars,
+ - arrays of arrays of scalars,
+ - arrays of hashes containing only scalars
diff -r a613bd201802 -r d528070c4e17 devel/p5-Test-Differences/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-Differences/Makefile Mon Jun 23 04:04:21 2008 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/06/23 04:04:21 abs Exp $
+
+DISTNAME= Test-Differences-0.47
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Test/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://search.cpan.org/perldoc?Test::Differences
+COMMENT= Test strings and data structures and show differences if not ok
+
+DEPENDS+= p5-Text-Diff>=0.34:../../textproc/p5-Text-Diff
+
+USE_LANGUAGES= # empty
+PERL5_PACKLIST= auto/Test/Differences/.packlist
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r a613bd201802 -r d528070c4e17 devel/p5-Test-Differences/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-Differences/distinfo Mon Jun 23 04:04:21 2008 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/06/23 04:04:21 abs Exp $
+
+SHA1 (Test-Differences-0.47.tar.gz) = fd8dc23e5efdf4a2a043b911953fd06697d33e1a
+RMD160 (Test-Differences-0.47.tar.gz) = c53566d36b2407a31cf91a61dad52d96dc3deaa9
+Size (Test-Differences-0.47.tar.gz) = 8322 bytes
Home |
Main Index |
Thread Index |
Old Index