pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-Test-Deep Initial import of p5-Test-Deep:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7d81fec472d4
branches:  trunk
changeset: 503582:7d81fec472d4
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Nov 23 22:00:26 2005 +0000

description:
Initial import of p5-Test-Deep:

Test::Deep gives you very flexible ways to check that the result
you got is the result you were expecting. At its simplest it compares
two structures by going through each level, ensuring that the values
match, that arrays and hashes have the same elements and that
references are blessed into the correct class. It also handles
circular data structures without getting caught in an infinite
loop.

Where it becomes more interesting is in allowing you to do something
besides simple exact comparisons. With strings, the = operator
checks that 2 strings are exactly equal but sometimes that's not
what you want. When you don't know exactly what the string should
be but you do know some things about how it should look, = is no
good and you must use pattern matching instead. Test::Deep provides
pattern matching for complex data structures.

diffstat:

 devel/p5-Test-Deep/DESCR    |  15 +++++++++++++++
 devel/p5-Test-Deep/Makefile |  19 +++++++++++++++++++
 devel/p5-Test-Deep/PLIST    |   1 +
 devel/p5-Test-Deep/distinfo |   5 +++++
 4 files changed, 40 insertions(+), 0 deletions(-)

diffs (56 lines):

diff -r 3ab2e57c3d7e -r 7d81fec472d4 devel/p5-Test-Deep/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-Deep/DESCR  Wed Nov 23 22:00:26 2005 +0000
@@ -0,0 +1,15 @@
+Test::Deep gives you very flexible ways to check that the result
+you got is the result you were expecting. At its simplest it compares
+two structures by going through each level, ensuring that the values
+match, that arrays and hashes have the same elements and that
+references are blessed into the correct class. It also handles
+circular data structures without getting caught in an infinite
+loop.
+
+Where it becomes more interesting is in allowing you to do something
+besides simple exact comparisons. With strings, the = operator
+checks that 2 strings are exactly equal but sometimes that's not
+what you want. When you don't know exactly what the string should
+be but you do know some things about how it should look, = is no
+good and you must use pattern matching instead. Test::Deep provides
+pattern matching for complex data structures.
diff -r 3ab2e57c3d7e -r 7d81fec472d4 devel/p5-Test-Deep/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-Deep/Makefile       Wed Nov 23 22:00:26 2005 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/11/23 22:00:26 wiz Exp $
+
+DISTNAME=              Test-Deep-0.092
+PKGNAME=               p5-${DISTNAME}
+CATEGORIES=            devel perl5
+MASTER_SITES=          ${MASTER_SITE_PERL_CPAN:=Test/}
+
+MAINTAINER=            tech-pkg%NetBSD.org@localhost
+HOMEPAGE=              http://search.cpan.org/dist/Test-Deep/
+COMMENT=               Perl5 module to test deep structures
+
+DEPENDS+=              p5-Test-Tester>=0.04:../../devel/p5-Test-Tester
+DEPENDS+=              p5-Test-NoWarnings>=0.02:../../devel/p5-Test-NoWarnings
+
+USE_LANGUAGES=         # empty
+PERL5_PACKLIST=                auto/Test/Deep/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 3ab2e57c3d7e -r 7d81fec472d4 devel/p5-Test-Deep/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-Deep/PLIST  Wed Nov 23 22:00:26 2005 +0000
@@ -0,0 +1,1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/23 22:00:26 wiz Exp $
diff -r 3ab2e57c3d7e -r 7d81fec472d4 devel/p5-Test-Deep/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-Deep/distinfo       Wed Nov 23 22:00:26 2005 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/11/23 22:00:26 wiz Exp $
+
+SHA1 (Test-Deep-0.092.tar.gz) = a258e44d1d2743642e75301efc0411029de48eca
+RMD160 (Test-Deep-0.092.tar.gz) = 45bc55400bd05660d92a4a482dc3e8e547a4719a
+Size (Test-Deep-0.092.tar.gz) = 29990 bytes



Home | Main Index | Thread Index | Old Index