./devel/p5-Test-Deep, Perl5 module to test deep structures

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.128nb1, Package name: p5-Test-Deep-1.128nb1, Maintainer: pkgsrc-users

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.


Required to run:
[lang/perl5] [devel/p5-Test-Simple]

Required to build:
[pkgtools/cwrappers]

Master sites: (Expand)

SHA1: c5e5276940b2a928d876f3f48e9bfd7a911abf55
RMD160: b6483d3c96207716467c34ebba4bf6ca39959772
Filesize: 40.673 KB

Version history: (Expand)


CVS history: (Expand)


   2018-08-22 11:48:07 by Thomas Klausner | Files touched by this commit (3558)
Log message:
Recursive bump for perl5-5.28.0
   2018-05-02 14:09:53 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
p5-Test-Deep: update to 1.128.

1.128     2018-04-18
        - numerous small improvements to documentation; thanks to
          Fabrice Gabolde, Daniel Böhmer, Lance Wicks, Matthew Horsfall
        - improved CI setup; thanks to eadjei and Philip J. Ludlam
   2017-06-05 16:25:36 by Ryo ONODERA | Files touched by this commit (2298)
Log message:
Recursive revbump from lang/perl5 5.26.0
   2017-05-05 02:15:53 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Updated devel/p5-Test-Deep to 1.127
-----------------------------------
1.127     2017-05-04
        - no code changes from previous release

1.126_001 2017-04-17
        - do not eagerly convert simple scalars into tests in the all, any, and
          none tests; this was breaking LeafWrapper application
   2017-01-02 02:13:29 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 1.126

Upstream changes:
1.126     2016-12-27
        - no changes since v1.125_001

1.125_001 2016-12-27
        - if objects in the "expected" structured have an as_test_deep_cmp
          method, it will be called and its return (which should be a
          Test::Deep::Cmp object) will be used as the test for that location in
          the structure
        - internal undocumented class_base routine has been replaced
          with a different, clearly private routine
        - the LeafWrapper is also used for objects with an unknown reftype
          (like LVALUE or other weird ones)
   2016-11-07 15:12:59 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Updated devel/p5-Test-Deep to 1.124
------------------------------------
1.124     2016-11-05
- avoid an uninitialized warning when array_each() compares to a
  non-reference (thanks, Максим Вуец!, Maxim Vuets)
   2016-09-12 14:28:06 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 1.123

Upstream changes:
1.123     2016-09-09
        - remove test suite reliance on "." appearing @INC (thanks, \ 
Graham Knop
          and Karen Etheridge!)
        - when an object with stringification overloading fails to match a
          "re" test, its stringification is included in the diagnostics

1.122     2016-09-07
        - added $Test::Deep::LeafWrapper to control the behavior of simple
          values in the "expected" definition; by default, they are \ 
treated as
          shallow($x) tests, but you can now say (for example)
          C<< $Test::Deep::LeafWrapper = \&str >> to always \ 
treat the got value
          as a string, even if blessed, etc.

1.121_001 2016-07-19
        - documentation improvements
        - avoid a few evals, localize $@ in a few places where eval is used
        - good bye tabs, hello spaces
   2016-06-08 21:25:20 by Thomas Klausner | Files touched by this commit (2236) | Package updated
Log message:
Bump PKGREVISION for perl-5.24.