1*4882a593SmuzhiyunSUMMARY = "Test::Deep - Extremely flexible deep comparison"
2*4882a593SmuzhiyunDESCRIPTION = "If you don't know anything about automated testing in Perl \
3*4882a593Smuzhiyunthen you should probably read about Test::Simple and Test::More before \
4*4882a593Smuzhiyunpreceding. Test::Deep uses the Test::Builder framework. \
5*4882a593Smuzhiyun\
6*4882a593SmuzhiyunTest::Deep gives you very flexible ways to check that the result you got is \
7*4882a593Smuzhiyunthe result you were expecting. At its simplest it compares two structures \
8*4882a593Smuzhiyunby going through each level, ensuring that the values match, that arrays and \
9*4882a593Smuzhiyunhashes have the same elements and that references are blessed into the \
10*4882a593Smuzhiyuncorrect class. It also handles circular data structures without getting \
11*4882a593Smuzhiyuncaught in an infinite loop. \
12*4882a593Smuzhiyun\
13*4882a593SmuzhiyunWhere it becomes more interesting is in allowing you to do something besides \
14*4882a593Smuzhiyunsimple exact comparisons. With strings, the \'eq\' operator checks that 2 \
15*4882a593Smuzhiyunstrings are exactly equal but sometimes that's not what you want. When you \
16*4882a593Smuzhiyundon't know exactly what the string should be but you do know some things \
17*4882a593Smuzhiyunabout how it should look, \'eq\' is no good and you must use pattern matching \
18*4882a593Smuzhiyuninstead. Test::Deep provides pattern matching for complex data structures \
19*4882a593Smuzhiyundistribution."
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunSECTION = "libs"
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunHOMEPAGE = "http://github.com/rjbs/Test-Deep/"
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunLICENSE = "Artistic-1.0 | GPL-1.0-or-later"
26*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://lib/Test/Deep.pm;beginline=1817;endline=1826;md5=a897a42bafc3422cab17c2eb94f87a7c"
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunSRC_URI = "${CPAN_MIRROR}/authors/id/R/RJ/RJBS/Test-Deep-${PV}.tar.gz"
29*4882a593SmuzhiyunSRC_URI[md5sum] = "d466e471108f7f7a5df3802cb13761ac"
30*4882a593SmuzhiyunSRC_URI[sha256sum] = "4064f494f5f62587d0ae501ca439105821ee5846c687dc6503233f55300a7c56"
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunUPSTREAM_CHECK_REGEX = "Test\-Deep\-(?P<pver>(\d+\.\d+))(?!_\d+).tar"
33*4882a593Smuzhiyun
34*4882a593SmuzhiyunS = "${WORKDIR}/Test-Deep-${PV}"
35*4882a593Smuzhiyun
36*4882a593Smuzhiyuninherit cpan ptest-perl
37*4882a593Smuzhiyun
38*4882a593SmuzhiyunRDEPENDS:${PN} += " \
39*4882a593Smuzhiyun    perl-module-dynaloader \
40*4882a593Smuzhiyun    perl-module-exporter \
41*4882a593Smuzhiyun    perl-module-fcntl \
42*4882a593Smuzhiyun    perl-module-list-util \
43*4882a593Smuzhiyun    perl-module-scalar-util \
44*4882a593Smuzhiyun    perl-module-strict \
45*4882a593Smuzhiyun    perl-module-vars \
46*4882a593Smuzhiyun    perl-module-warnings \
47*4882a593Smuzhiyun"
48*4882a593Smuzhiyun
49*4882a593SmuzhiyunRDEPENDS:${PN}-ptest += " \
50*4882a593Smuzhiyun    perl-module-if \
51*4882a593Smuzhiyun    perl-module-lib \
52*4882a593Smuzhiyun    perl-module-test-more \
53*4882a593Smuzhiyun    perl-module-test-tester \
54*4882a593Smuzhiyun"
55*4882a593Smuzhiyun
56*4882a593SmuzhiyunBBCLASSEXTEND = "native"
57