1*fc113eadSAndrew GeisslerSUMMARY = "Test::Deep - Extremely flexible deep comparison" 2*fc113eadSAndrew GeisslerDESCRIPTION = "If you don't know anything about automated testing in Perl \ 3*fc113eadSAndrew Geisslerthen you should probably read about Test::Simple and Test::More before \ 4*fc113eadSAndrew Geisslerpreceding. Test::Deep uses the Test::Builder framework. \ 5*fc113eadSAndrew Geissler\ 6*fc113eadSAndrew GeisslerTest::Deep gives you very flexible ways to check that the result you got is \ 7*fc113eadSAndrew Geisslerthe result you were expecting. At its simplest it compares two structures \ 8*fc113eadSAndrew Geisslerby going through each level, ensuring that the values match, that arrays and \ 9*fc113eadSAndrew Geisslerhashes have the same elements and that references are blessed into the \ 10*fc113eadSAndrew Geisslercorrect class. It also handles circular data structures without getting \ 11*fc113eadSAndrew Geisslercaught in an infinite loop. \ 12*fc113eadSAndrew Geissler\ 13*fc113eadSAndrew GeisslerWhere it becomes more interesting is in allowing you to do something besides \ 14*fc113eadSAndrew Geisslersimple exact comparisons. With strings, the \'eq\' operator checks that 2 \ 15*fc113eadSAndrew Geisslerstrings are exactly equal but sometimes that's not what you want. When you \ 16*fc113eadSAndrew Geisslerdon't know exactly what the string should be but you do know some things \ 17*fc113eadSAndrew Geisslerabout how it should look, \'eq\' is no good and you must use pattern matching \ 18*fc113eadSAndrew Geisslerinstead. Test::Deep provides pattern matching for complex data structures \ 19*fc113eadSAndrew Geisslerdistribution." 20*fc113eadSAndrew Geissler 21*fc113eadSAndrew GeisslerSECTION = "libs" 22*fc113eadSAndrew Geissler 23*fc113eadSAndrew GeisslerHOMEPAGE = "http://github.com/rjbs/Test-Deep/" 24*fc113eadSAndrew Geissler 25*fc113eadSAndrew GeisslerLICENSE = "Artistic-1.0 | GPL-1.0-or-later" 26*fc113eadSAndrew GeisslerLIC_FILES_CHKSUM = "file://lib/Test/Deep.pm;beginline=1817;endline=1826;md5=d3ed382cc19bae8ead6076df35a43cbf" 27*fc113eadSAndrew Geissler 28*fc113eadSAndrew GeisslerSRC_URI = "${CPAN_MIRROR}/authors/id/R/RJ/RJBS/Test-Deep-${PV}.tar.gz" 29*fc113eadSAndrew GeisslerSRC_URI[sha256sum] = "b6591f6ccdd853c7efc9ff3c5756370403211cffe46047f082b1cd1611a84e5f" 30*fc113eadSAndrew Geissler 31*fc113eadSAndrew GeisslerUPSTREAM_CHECK_REGEX = "Test\-Deep\-(?P<pver>(\d+\.\d+))(?!_\d+).tar" 32*fc113eadSAndrew Geissler 33*fc113eadSAndrew GeisslerS = "${WORKDIR}/Test-Deep-${PV}" 34*fc113eadSAndrew Geissler 35*fc113eadSAndrew Geisslerinherit cpan ptest-perl 36*fc113eadSAndrew Geissler 37*fc113eadSAndrew GeisslerRDEPENDS:${PN} += " \ 38*fc113eadSAndrew Geissler perl-module-dynaloader \ 39*fc113eadSAndrew Geissler perl-module-exporter \ 40*fc113eadSAndrew Geissler perl-module-fcntl \ 41*fc113eadSAndrew Geissler perl-module-list-util \ 42*fc113eadSAndrew Geissler perl-module-scalar-util \ 43*fc113eadSAndrew Geissler perl-module-strict \ 44*fc113eadSAndrew Geissler perl-module-vars \ 45*fc113eadSAndrew Geissler perl-module-warnings \ 46*fc113eadSAndrew Geissler" 47*fc113eadSAndrew Geissler 48*fc113eadSAndrew GeisslerRDEPENDS:${PN}-ptest += " \ 49*fc113eadSAndrew Geissler perl-module-if \ 50*fc113eadSAndrew Geissler perl-module-lib \ 51*fc113eadSAndrew Geissler perl-module-test-more \ 52*fc113eadSAndrew Geissler perl-module-test-tester \ 53*fc113eadSAndrew Geissler" 54*fc113eadSAndrew Geissler 55*fc113eadSAndrew GeisslerBBCLASSEXTEND = "native" 56