summaryrefslogtreecommitdiff
path: root/devel/p5-Test-Deep
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-11-23 22:00:26 +0000
committerwiz <wiz@pkgsrc.org>2005-11-23 22:00:26 +0000
commitcb5c05829100fecf6f470331a37effba9d66931c (patch)
tree61025cd788760666c0e3f8f8aab58cdefadedb39 /devel/p5-Test-Deep
parentec69205bc1382293ecb74e2d3efed08701dac82f (diff)
downloadpkgsrc-cb5c05829100fecf6f470331a37effba9d66931c.tar.gz
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 (limited to 'devel/p5-Test-Deep')
-rw-r--r--devel/p5-Test-Deep/DESCR15
-rw-r--r--devel/p5-Test-Deep/Makefile19
-rw-r--r--devel/p5-Test-Deep/PLIST1
-rw-r--r--devel/p5-Test-Deep/distinfo5
4 files changed, 40 insertions, 0 deletions
diff --git a/devel/p5-Test-Deep/DESCR b/devel/p5-Test-Deep/DESCR
new file mode 100644
index 00000000000..8cd2fc75c7a
--- /dev/null
+++ b/devel/p5-Test-Deep/DESCR
@@ -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 --git a/devel/p5-Test-Deep/Makefile b/devel/p5-Test-Deep/Makefile
new file mode 100644
index 00000000000..70f2598da92
--- /dev/null
+++ b/devel/p5-Test-Deep/Makefile
@@ -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
+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 --git a/devel/p5-Test-Deep/PLIST b/devel/p5-Test-Deep/PLIST
new file mode 100644
index 00000000000..c1cbf5ea1e1
--- /dev/null
+++ b/devel/p5-Test-Deep/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/23 22:00:26 wiz Exp $
diff --git a/devel/p5-Test-Deep/distinfo b/devel/p5-Test-Deep/distinfo
new file mode 100644
index 00000000000..4548ff8fc61
--- /dev/null
+++ b/devel/p5-Test-Deep/distinfo
@@ -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