BSD Ports

devel/p5-Test-Deep 1.205nb2 NetBSD

Perl5 module to test deep structures

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
618415630a
License
gnu-gpl-v2 OR artistic
Categories
devel, perl5
Package size
38.8 KiB, 316.1 KiB installed

Description

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.

In the other systems

SystemPortVersion
NetBSDdevel/p5-Test-Deep1.205nb2
FreeBSDdevel/p5-Test-Deep1.205
OpenBSDdevel/p5-Test-Deep1.205
DragonFlydevel/p5-Test-Deep1.204
MidnightBSDdevel/p5-Test-Deep1.205
HardenedBSDdevel/p5-Test-Deep1.205
GhostBSDdevel/p5-Test-Deep1.205

Install

Binary package:

pkgin install p5-Test-Deep

From pkgsrc:

cd /usr/pkgsrc/devel/p5-Test-Deep && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.205nb2
NetBSD 10.1 aarch641.205nb1
SmartOS / illumos x86_641.205nb2
macOS 15 arm641.205nb2

Dependencies

Run dependencies 1

Commit history 1

DateCommitCreditsLog message
618415630a wiz *: recursive bump for perl5 5.44.0