summaryrefslogtreecommitdiff
path: root/devel/p5-Test-Deep
diff options
context:
space:
mode:
authorwiz <wiz>2005-11-23 22:00:26 +0000
committerwiz <wiz>2005-11-23 22:00:26 +0000
commit8ac13eed71ba89d32e552420f74672081486fdb8 (patch)
tree61025cd788760666c0e3f8f8aab58cdefadedb39 /devel/p5-Test-Deep
parentb8acad7bb78cce60986534b39d556ca84c1bb051 (diff)
downloadpkgsrc-8ac13eed71ba89d32e552420f74672081486fdb8.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