| 1 |
Source: golang-github-maxatome-go-testdeep |
| 2 |
Maintainer: Debian Go Packaging Team <[email protected]> |
| 3 |
Uploaders: Mathias Gibbens <[email protected]> |
| 4 |
Section: golang |
| 5 |
Testsuite: autopkgtest-pkg-go |
| 6 |
Build-Depends: debhelper-compat (= 13), |
| 7 |
dh-golang, |
| 8 |
golang-any (>= 2:1.27~) |
| 9 |
Standards-Version: 4.7.4 |
| 10 |
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-maxatome-go-testdeep |
| 11 |
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-maxatome-go-testdeep.git |
| 12 |
Homepage: https://github.com/maxatome/go-testdeep |
| 13 |
XS-Go-Import-Path: github.com/maxatome/go-testdeep |
| 14 |
|
| 15 |
Package: golang-github-maxatome-go-testdeep-dev |
| 16 |
Architecture: all |
| 17 |
Multi-Arch: foreign |
| 18 |
Depends: ${misc:Depends} |
| 19 |
Description: Extremely flexible golang deep comparison |
| 20 |
go-testdeep is historically a go rewrite and adaptation of wonderful |
| 21 |
Test::Deep perl. |
| 22 |
. |
| 23 |
In golang, comparing data structure is usually done using |
| 24 |
reflect.DeepEqual or using a package that uses this function behind |
| 25 |
the scene. |
| 26 |
. |
| 27 |
This function works very well, but it is not flexible. Both compared |
| 28 |
structures must match exactly and when a difference is returned, it is |
| 29 |
up to the caller to display it. Not easy when comparing big data |
| 30 |
structures. |
| 31 |
. |
| 32 |
The purpose of go-testdeep, via the td package and its helpers, is to |
| 33 |
do its best to introduce this missing flexibility using "operators", |
| 34 |
when the expected value (or one of its component) cannot be matched |
| 35 |
exactly, mixed with some useful comparison functions. |