| 1 |
go-testdeep |
| 2 |
=========== |
| 3 |
|
| 4 |
[](https://github.com/maxatome/go-testdeep/actions?query=workflow%3ABuild) |
| 5 |
[](https://coveralls.io/github/maxatome/go-testdeep?branch=master) |
| 6 |
[](https://pkg.go.dev/github.com/maxatome/go-testdeep/td) |
| 7 |
[](https://github.com/maxatome/go-testdeep/releases) |
| 8 |
[](https://github.com/avelino/awesome-go/#testing) |
| 9 |
|
| 10 |
 |
| 11 |
|
| 12 |
**Extremely flexible golang deep comparison, extends the go testing |
| 13 |
package, dependency free.** |
| 14 |
|
| 15 |
Currently supports go 1.16 → 1.27. |
| 16 |
|
| 17 |
- [Latest news](#latest-news) |
| 18 |
- [Synopsis](#synopsis) |
| 19 |
- [Description](#description) |
| 20 |
- [Installation](#installation) |
| 21 |
- [Functions](https://go-testdeep.zetta.rocks/functions/) |
| 22 |
- [Available operators](https://go-testdeep.zetta.rocks/operators/) |
| 23 |
- [Helpers](#helpers) |
| 24 |
- [`tdhttp` or HTTP API testing helper](https://pkg.go.dev/github.com/maxatome/go-testdeep/helpers/tdhttp) |
| 25 |
- [`tdsuite` or testing suite helper](https://pkg.go.dev/github.com/maxatome/go-testdeep/helpers/tdsuite) |
| 26 |
- [`tdsynctest` or `testing/synctest` helper](https://pkg.go.dev/github.com/maxatome/go-testdeep/helpers/tdsynctest) |
| 27 |
- [`tdutil` aka the helper of helpers](https://pkg.go.dev/github.com/maxatome/go-testdeep/helpers/tdutil) |
| 28 |
- [See also](#see-also) |
| 29 |
- [License](#license) |
| 30 |
- [FAQ](https://go-testdeep.zetta.rocks/faq/) |
| 31 |
|
| 32 |
|
| 33 |
## Latest news |
| 34 |
|
| 35 |
- 2025/02/18: [v1.15.0 release](https://github.com/maxatome/go-testdeep/releases/tag/v1.15.0); |
| 36 |
- 2023/12/27: [v1.14.0 release](https://github.com/maxatome/go-testdeep/releases/tag/v1.14.0); |
| 37 |
- 2023/03/18: [v1.13.0 release](https://github.com/maxatome/go-testdeep/releases/tag/v1.13.0); |
| 38 |
- see [commits history](https://github.com/maxatome/go-testdeep/commits/master) |
| 39 |
for other/older changes. |
| 40 |
|
| 41 |
|
| 42 |
## Synopsis |
| 43 |
|
| 44 |
Make golang tests easy, from simplest usage: |
| 45 |
|
| 46 |
```go |
| 47 |
import ( |
| 48 |
"testing" |
| 49 |
|
| 50 |
"github.com/maxatome/go-testdeep/td" |
| 51 |
) |
| 52 |
|
| 53 |
func TestMyFunc(t *testing.T) { |
| 54 |
td.Cmp(t, MyFunc(), &Info{Name: "Alice", Age: 42}) |
| 55 |
} |
| 56 |
``` |
| 57 |
|
| 58 |
To a bit more complex one, allowing flexible comparisons using |
| 59 |
[TestDeep operators](https://go-testdeep.zetta.rocks/operators/): |
| 60 |
|
| 61 |
```go |
| 62 |
import ( |
| 63 |
"testing" |
| 64 |
|
| 65 |
"github.com/maxatome/go-testdeep/td" |
| 66 |
) |
| 67 |
|
| 68 |
func TestMyFunc(t *testing.T) { |
| 69 |
td.Cmp(t, MyFunc(), td.Struct( |
| 70 |
&Info{Name: "Alice"}, |
| 71 |
td.StructFields{ |
| 72 |
"Age": td.Between(40, 45), |
| 73 |
}, |
| 74 |
)) |
| 75 |
} |
| 76 |
``` |
| 77 |
|
| 78 |
Or anchoring operators directly in literals, as in: |
| 79 |
|
| 80 |
```go |
| 81 |
import ( |
| 82 |
"testing" |
| 83 |
|
| 84 |
"github.com/maxatome/go-testdeep/td" |
| 85 |
) |
| 86 |
|
| 87 |
func TestMyFunc(tt *testing.T) { |
| 88 |
t := td.NewT(tt) |
| 89 |
|
| 90 |
t.Cmp(MyFunc(), &Info{ |
| 91 |
Name: "Alice", |
| 92 |
Age: t.Anchor(td.Between(40, 45)).(int), |
| 93 |
}) |
| 94 |
} |
| 95 |
``` |
| 96 |
|
| 97 |
To most complex one, allowing to easily test HTTP API routes, using |
| 98 |
flexible [operators](https://go-testdeep.zetta.rocks/operators/): |
| 99 |
|
| 100 |
```go |
| 101 |
import ( |
| 102 |
"testing" |
| 103 |
"time" |
| 104 |
|
| 105 |
"github.com/maxatome/go-testdeep/helpers/tdhttp" |
| 106 |
"github.com/maxatome/go-testdeep/td" |
| 107 |
) |
| 108 |
|
| 109 |
type Person struct { |
| 110 |
ID uint64 `json:"id"` |
| 111 |
Name string `json:"name"` |
| 112 |
Age int `json:"age"` |
| 113 |
CreatedAt time.Time `json:"created_at"` |
| 114 |
} |
| 115 |
|
| 116 |
func TestMyApi(t *testing.T) { |
| 117 |
var id uint64 |
| 118 |
var createdAt time.Time |
| 119 |
|
| 120 |
testAPI := tdhttp.NewTestAPI(t, myAPI) // ← ① |
| 121 |
|
| 122 |
testAPI.PostJSON("/person", Person{Name: "Bob", Age: 42}). // ← ② |
| 123 |
Name("Create a new Person"). |
| 124 |
CmpStatus(http.StatusCreated). // ← ③ |
| 125 |
CmpJSONBody(td.JSON(` |
| 126 |
// Note that comments are allowed |
| 127 |
{ |
| 128 |
"id": $id, // set by the API/DB |
| 129 |
"name": "Alice", |
| 130 |
"age": Between(40, 45), // ← ④ |
| 131 |
"created_at": "$createdAt", // set by the API/DB |
| 132 |
}`, |
| 133 |
td.Tag("id", td.Catch(&id, td.NotZero())), // ← ⑤ |
| 134 |
td.Tag("createdAt", td.All( // ← ⑥ |
| 135 |
td.HasSuffix("Z"), // ← ⑦ |
| 136 |
td.Smuggle(func(s string) (time.Time, error) { // ← ⑧ |
| 137 |
return time.Parse(time.RFC3339Nano, s) |
| 138 |
}, td.Catch(&createdAt, td.Between(testAPI.SentAt(), time.Now()))), // ← ⑨ |
| 139 |
)), |
| 140 |
)) |
| 141 |
if !testAPI.Failed() { |
| 142 |
t.Logf("The new Person ID is %d and was created at %s", id, createdAt) |
| 143 |
} |
| 144 |
} |
| 145 |
``` |
| 146 |
|
| 147 |
1. the API handler ready to be tested; |
| 148 |
2. the POST request with automatic JSON marshaling; |
| 149 |
3. the expected response HTTP status should be `http.StatusCreated` |
| 150 |
and the line just below, the body should match the [`JSON`] operator; |
| 151 |
4. some operators can be embedded, like [`Between`] here; |
| 152 |
5. for the `$id` placeholder, [`Catch`] its |
| 153 |
value: put it in `id` variable and check it is [`NotZero`]; |
| 154 |
6. for the `$createdAt` placeholder, use the [`All`] |
| 155 |
operator. It combines several operators like a AND; |
| 156 |
7. check that `$createdAt` date ends with "Z" using |
| 157 |
[`HasSuffix`]. As we expect a RFC3339 |
| 158 |
date, we require it in UTC time zone; |
| 159 |
8. convert `$createdAt` date into a `time.Time` using a custom |
| 160 |
function thanks to the [`Smuggle`] operator; |
| 161 |
9. then [`Catch`] the resulting value: put it in |
| 162 |
`createdAt` variable and check it is greater or equal than |
| 163 |
`testAPI.SentAt()` (the time just before the request is handled) and lesser |
| 164 |
or equal than `time.Now()`. |
| 165 |
|
| 166 |
See [`tdhttp`] helper or the |
| 167 |
[FAQ](https://go-testdeep.zetta.rocks/faq/#what-about-testing-the-response-using-my-api) |
| 168 |
for details about HTTP API testing. |
| 169 |
|
| 170 |
Example of produced error in case of mismatch: |
| 171 |
|
| 172 |
 |
| 173 |
|
| 174 |
|
| 175 |
## Description |
| 176 |
|
| 177 |
go-testdeep is historically a go rewrite and adaptation of wonderful |
| 178 |
[Test::Deep perl](https://metacpan.org/pod/Test::Deep). |
| 179 |
|
| 180 |
In golang, comparing data structure is usually done using |
| 181 |
[reflect.DeepEqual](https://golang.org/pkg/reflect/#DeepEqual) or |
| 182 |
using a package that uses this function behind the scene. |
| 183 |
|
| 184 |
This function works very well, but it is not flexible. Both compared |
| 185 |
structures must match exactly and when a difference is returned, it is |
| 186 |
up to the caller to display it. Not easy when comparing big data |
| 187 |
structures. |
| 188 |
|
| 189 |
The purpose of go-testdeep, via the |
| 190 |
[`td` package](https://pkg.go.dev/github.com/maxatome/go-testdeep/td) |
| 191 |
and its |
| 192 |
[helpers](https://pkg.go.dev/github.com/maxatome/go-testdeep/helpers), |
| 193 |
is to do its best to introduce this missing flexibility using |
| 194 |
["operators"](https://go-testdeep.zetta.rocks/operators/), when the |
| 195 |
expected value (or one of its component) cannot be matched exactly, |
| 196 |
mixed with some useful |
| 197 |
[comparison functions](https://go-testdeep.zetta.rocks/functions/). |
| 198 |
|
| 199 |
**See [go-testdeep.zetta.rocks](https://go-testdeep.zetta.rocks/) for |
| 200 |
details.** |
| 201 |
|
| 202 |
|
| 203 |
## Installation |
| 204 |
|
| 205 |
```sh |
| 206 |
$ go get github.com/maxatome/go-testdeep |
| 207 |
``` |
| 208 |
|
| 209 |
|
| 210 |
## Helpers |
| 211 |
|
| 212 |
The goal of helpers is to make use of `go-testdeep` even more powerful |
| 213 |
by providing common features using |
| 214 |
[TestDeep operators](https://go-testdeep.zetta.rocks/operators/) |
| 215 |
behind the scene. |
| 216 |
|
| 217 |
### `tdhttp` or HTTP API testing helper |
| 218 |
|
| 219 |
The package `github.com/maxatome/go-testdeep/helpers/tdhttp` provides |
| 220 |
some functions to easily test HTTP handlers. |
| 221 |
|
| 222 |
See [`tdhttp`] documentation for details or |
| 223 |
[FAQ](https://go-testdeep.zetta.rocks/faq/#what-about-testing-the-response-using-my-api) for an |
| 224 |
example of use. |
| 225 |
|
| 226 |
### `tdsuite` or testing suite helper |
| 227 |
|
| 228 |
The package `github.com/maxatome/go-testdeep/helpers/tdsuite` adds tests |
| 229 |
suite feature to go-testdeep in a non-intrusive way, but easily and powerfully. |
| 230 |
|
| 231 |
A tests suite is a set of tests run sequentially that share some data. |
| 232 |
|
| 233 |
Some hooks can be set to be automatically called before the suite is run, |
| 234 |
before, after and/or between each test, and at the end of the suite. |
| 235 |
|
| 236 |
See [`tdsuite`] documentation for details. |
| 237 |
|
| 238 |
### `tdsynctest` or `testing/synctest` helper |
| 239 |
|
| 240 |
The package `github.com/maxatome/go-testdeep/helpers/tdsynctest` |
| 241 |
allows to use [`testing/synctest`](https://pkg.go.dev/testing/synctest) |
| 242 |
on steroids thanks to go-testdeep. |
| 243 |
|
| 244 |
See [`tdsynctest`] documentation for details. |
| 245 |
|
| 246 |
### `tdutil` aka the helper of helpers |
| 247 |
|
| 248 |
The package `github.com/maxatome/go-testdeep/helpers/tdutil` allows to |
| 249 |
write unit tests for go-testdeep helpers and so provides some helpful |
| 250 |
functions. |
| 251 |
|
| 252 |
See [`tdutil`] documentation for details. |
| 253 |
|
| 254 |
|
| 255 |
## See also |
| 256 |
|
| 257 |
- [testify](https://github.com/stretchr/testify): a toolkit with common assertions and mocks that plays nicely with the standard library |
| 258 |
- [go-cmp](https://github.com/google/go-cmp): package for comparing Go values in tests |
| 259 |
|
| 260 |
|
| 261 |
## License |
| 262 |
|
| 263 |
`go-testdeep` is released under the BSD-style license found in the |
| 264 |
[`LICENSE`](LICENSE) file in the root directory of this source tree. |
| 265 |
|
| 266 |
Internal function `deepValueEqual` is based on `deepValueEqual` from |
| 267 |
[`reflect` golang package](https://golang.org/pkg/reflect/) licensed |
| 268 |
under the BSD-style license found in the [`LICENSE` file in the golang |
| 269 |
repository](https://github.com/golang/go/blob/master/LICENSE). |
| 270 |
|
| 271 |
[Go-spew](https://github.com/davecgh/go-spew) has been imported into |
| 272 |
[internal/spew/](internal/spew) directory, then modified to fit |
| 273 |
go-testdeep needs. It is licensed under the [copyfree](http://copyfree.org) |
| 274 |
[ISC License](internal/spew/LICENSE). |
| 275 |
|
| 276 |
[Public Domain Gopher](https://github.com/egonelbre/gophers) provided |
| 277 |
by [Egon Elbre](http://egonelbre.com/). The Go gopher was designed by |
| 278 |
[Renee French](https://reneefrench.blogspot.com/). |
| 279 |
|
| 280 |
|
| 281 |
## FAQ |
| 282 |
|
| 283 |
See [FAQ](https://go-testdeep.zetta.rocks/faq/). |
| 284 |
|
| 285 |
|
| 286 |
<!-- links:begin --> |
| 287 |
[`T`]: https://pkg.go.dev/github.com/maxatome/go-testdeep/td#T |
| 288 |
[`TestDeep`]: https://pkg.go.dev/github.com/maxatome/go-testdeep/td#TestDeep |
| 289 |
[`Cmp`]: https://pkg.go.dev/github.com/maxatome/go-testdeep/td#Cmp |
| 290 |
|
| 291 |
[`tdhttp`]: https://pkg.go.dev/github.com/maxatome/go-testdeep/helpers/tdhttp |
| 292 |
[`tdsuite`]: https://pkg.go.dev/github.com/maxatome/go-testdeep/helpers/tdsuite |
| 293 |
[`tdsynctest`]: https://pkg.go.dev/github.com/maxatome/go-testdeep/helpers/tdsynctest |
| 294 |
[`tdutil`]: https://pkg.go.dev/github.com/maxatome/go-testdeep/helpers/tdutil |
| 295 |
|
| 296 |
[`BeLax` config flag]: https://pkg.go.dev/github.com/maxatome/go-testdeep/td#ContextConfig.BeLax |
| 297 |
[`error`]: https://pkg.go.dev/builtin#error |
| 298 |
|
| 299 |
|
| 300 |
[`fmt.Stringer`]: https://pkg.go.dev/fmt/#Stringer |
| 301 |
[`time.Time`]: https://pkg.go.dev/time/#Time |
| 302 |
[`math.NaN`]: https://pkg.go.dev/math/#NaN |
| 303 |
[`All`]: https://go-testdeep.zetta.rocks/operators/all/ |
| 304 |
[`Any`]: https://go-testdeep.zetta.rocks/operators/any/ |
| 305 |
[`Array`]: https://go-testdeep.zetta.rocks/operators/array/ |
| 306 |
[`ArrayEach`]: https://go-testdeep.zetta.rocks/operators/arrayeach/ |
| 307 |
[`Bag`]: https://go-testdeep.zetta.rocks/operators/bag/ |
| 308 |
[`Between`]: https://go-testdeep.zetta.rocks/operators/between/ |
| 309 |
[`Cap`]: https://go-testdeep.zetta.rocks/operators/cap/ |
| 310 |
[`Catch`]: https://go-testdeep.zetta.rocks/operators/catch/ |
| 311 |
[`Code`]: https://go-testdeep.zetta.rocks/operators/code/ |
| 312 |
[`Contains`]: https://go-testdeep.zetta.rocks/operators/contains/ |
| 313 |
[`ContainsKey`]: https://go-testdeep.zetta.rocks/operators/containskey/ |
| 314 |
[`Delay`]: https://go-testdeep.zetta.rocks/operators/delay/ |
| 315 |
[`Empty`]: https://go-testdeep.zetta.rocks/operators/empty/ |
| 316 |
[`ErrorIs`]: https://go-testdeep.zetta.rocks/operators/erroris/ |
| 317 |
[`First`]: https://go-testdeep.zetta.rocks/operators/first/ |
| 318 |
[`Grep`]: https://go-testdeep.zetta.rocks/operators/grep/ |
| 319 |
[`Gt`]: https://go-testdeep.zetta.rocks/operators/gt/ |
| 320 |
[`Gte`]: https://go-testdeep.zetta.rocks/operators/gte/ |
| 321 |
[`HasPrefix`]: https://go-testdeep.zetta.rocks/operators/hasprefix/ |
| 322 |
[`HasSuffix`]: https://go-testdeep.zetta.rocks/operators/hassuffix/ |
| 323 |
[`Ignore`]: https://go-testdeep.zetta.rocks/operators/ignore/ |
| 324 |
[`Isa`]: https://go-testdeep.zetta.rocks/operators/isa/ |
| 325 |
[`JSON`]: https://go-testdeep.zetta.rocks/operators/json/ |
| 326 |
[`JSONPointer`]: https://go-testdeep.zetta.rocks/operators/jsonpointer/ |
| 327 |
[`Keys`]: https://go-testdeep.zetta.rocks/operators/keys/ |
| 328 |
[`Last`]: https://go-testdeep.zetta.rocks/operators/last/ |
| 329 |
[`Lax`]: https://go-testdeep.zetta.rocks/operators/lax/ |
| 330 |
[`Len`]: https://go-testdeep.zetta.rocks/operators/len/ |
| 331 |
[`List`]: https://go-testdeep.zetta.rocks/operators/list/ |
| 332 |
[`Lt`]: https://go-testdeep.zetta.rocks/operators/lt/ |
| 333 |
[`Lte`]: https://go-testdeep.zetta.rocks/operators/lte/ |
| 334 |
[`Map`]: https://go-testdeep.zetta.rocks/operators/map/ |
| 335 |
[`MapEach`]: https://go-testdeep.zetta.rocks/operators/mapeach/ |
| 336 |
[`N`]: https://go-testdeep.zetta.rocks/operators/n/ |
| 337 |
[`NaN`]: https://go-testdeep.zetta.rocks/operators/nan/ |
| 338 |
[`Nil`]: https://go-testdeep.zetta.rocks/operators/nil/ |
| 339 |
[`None`]: https://go-testdeep.zetta.rocks/operators/none/ |
| 340 |
[`Not`]: https://go-testdeep.zetta.rocks/operators/not/ |
| 341 |
[`NotAny`]: https://go-testdeep.zetta.rocks/operators/notany/ |
| 342 |
[`NotEmpty`]: https://go-testdeep.zetta.rocks/operators/notempty/ |
| 343 |
[`NotNaN`]: https://go-testdeep.zetta.rocks/operators/notnan/ |
| 344 |
[`NotNil`]: https://go-testdeep.zetta.rocks/operators/notnil/ |
| 345 |
[`NotZero`]: https://go-testdeep.zetta.rocks/operators/notzero/ |
| 346 |
[`PPtr`]: https://go-testdeep.zetta.rocks/operators/pptr/ |
| 347 |
[`Ptr`]: https://go-testdeep.zetta.rocks/operators/ptr/ |
| 348 |
[`Re`]: https://go-testdeep.zetta.rocks/operators/re/ |
| 349 |
[`ReAll`]: https://go-testdeep.zetta.rocks/operators/reall/ |
| 350 |
[`Recv`]: https://go-testdeep.zetta.rocks/operators/recv/ |
| 351 |
[`Set`]: https://go-testdeep.zetta.rocks/operators/set/ |
| 352 |
[`Shallow`]: https://go-testdeep.zetta.rocks/operators/shallow/ |
| 353 |
[`Slice`]: https://go-testdeep.zetta.rocks/operators/slice/ |
| 354 |
[`Smuggle`]: https://go-testdeep.zetta.rocks/operators/smuggle/ |
| 355 |
[`Sort`]: https://go-testdeep.zetta.rocks/operators/sort/ |
| 356 |
[`Sorted`]: https://go-testdeep.zetta.rocks/operators/sorted/ |
| 357 |
[`SStruct`]: https://go-testdeep.zetta.rocks/operators/sstruct/ |
| 358 |
[`String`]: https://go-testdeep.zetta.rocks/operators/string/ |
| 359 |
[`Struct`]: https://go-testdeep.zetta.rocks/operators/struct/ |
| 360 |
[`SubBagOf`]: https://go-testdeep.zetta.rocks/operators/subbagof/ |
| 361 |
[`SubJSONOf`]: https://go-testdeep.zetta.rocks/operators/subjsonof/ |
| 362 |
[`SubMapOf`]: https://go-testdeep.zetta.rocks/operators/submapof/ |
| 363 |
[`SubSetOf`]: https://go-testdeep.zetta.rocks/operators/subsetof/ |
| 364 |
[`SuperBagOf`]: https://go-testdeep.zetta.rocks/operators/superbagof/ |
| 365 |
[`SuperJSONOf`]: https://go-testdeep.zetta.rocks/operators/superjsonof/ |
| 366 |
[`SuperMapOf`]: https://go-testdeep.zetta.rocks/operators/supermapof/ |
| 367 |
[`SuperSetOf`]: https://go-testdeep.zetta.rocks/operators/supersetof/ |
| 368 |
[`SuperSliceOf`]: https://go-testdeep.zetta.rocks/operators/supersliceof/ |
| 369 |
[`Tag`]: https://go-testdeep.zetta.rocks/operators/tag/ |
| 370 |
[`TruncTime`]: https://go-testdeep.zetta.rocks/operators/trunctime/ |
| 371 |
[`Values`]: https://go-testdeep.zetta.rocks/operators/values/ |
| 372 |
[`Zero`]: https://go-testdeep.zetta.rocks/operators/zero/ |
| 373 |
|
| 374 |
[`CmpAll`]: https://go-testdeep.zetta.rocks/operators/all/#cmpall-shortcut |
| 375 |
[`CmpAny`]: https://go-testdeep.zetta.rocks/operators/any/#cmpany-shortcut |
| 376 |
[`CmpArray`]: https://go-testdeep.zetta.rocks/operators/array/#cmparray-shortcut |
| 377 |
[`CmpArrayEach`]: https://go-testdeep.zetta.rocks/operators/arrayeach/#cmparrayeach-shortcut |
| 378 |
[`CmpBag`]: https://go-testdeep.zetta.rocks/operators/bag/#cmpbag-shortcut |
| 379 |
[`CmpBetween`]: https://go-testdeep.zetta.rocks/operators/between/#cmpbetween-shortcut |
| 380 |
[`CmpCap`]: https://go-testdeep.zetta.rocks/operators/cap/#cmpcap-shortcut |
| 381 |
[`CmpCode`]: https://go-testdeep.zetta.rocks/operators/code/#cmpcode-shortcut |
| 382 |
[`CmpContains`]: https://go-testdeep.zetta.rocks/operators/contains/#cmpcontains-shortcut |
| 383 |
[`CmpContainsKey`]: https://go-testdeep.zetta.rocks/operators/containskey/#cmpcontainskey-shortcut |
| 384 |
[`CmpEmpty`]: https://go-testdeep.zetta.rocks/operators/empty/#cmpempty-shortcut |
| 385 |
[`CmpErrorIs`]: https://go-testdeep.zetta.rocks/operators/erroris/#cmperroris-shortcut |
| 386 |
[`CmpFirst`]: https://go-testdeep.zetta.rocks/operators/first/#cmpfirst-shortcut |
| 387 |
[`CmpGrep`]: https://go-testdeep.zetta.rocks/operators/grep/#cmpgrep-shortcut |
| 388 |
[`CmpGt`]: https://go-testdeep.zetta.rocks/operators/gt/#cmpgt-shortcut |
| 389 |
[`CmpGte`]: https://go-testdeep.zetta.rocks/operators/gte/#cmpgte-shortcut |
| 390 |
[`CmpHasPrefix`]: https://go-testdeep.zetta.rocks/operators/hasprefix/#cmphasprefix-shortcut |
| 391 |
[`CmpHasSuffix`]: https://go-testdeep.zetta.rocks/operators/hassuffix/#cmphassuffix-shortcut |
| 392 |
[`CmpIsa`]: https://go-testdeep.zetta.rocks/operators/isa/#cmpisa-shortcut |
| 393 |
[`CmpJSON`]: https://go-testdeep.zetta.rocks/operators/json/#cmpjson-shortcut |
| 394 |
[`CmpJSONPointer`]: https://go-testdeep.zetta.rocks/operators/jsonpointer/#cmpjsonpointer-shortcut |
| 395 |
[`CmpKeys`]: https://go-testdeep.zetta.rocks/operators/keys/#cmpkeys-shortcut |
| 396 |
[`CmpLast`]: https://go-testdeep.zetta.rocks/operators/last/#cmplast-shortcut |
| 397 |
[`CmpLax`]: https://go-testdeep.zetta.rocks/operators/lax/#cmplax-shortcut |
| 398 |
[`CmpLen`]: https://go-testdeep.zetta.rocks/operators/len/#cmplen-shortcut |
| 399 |
[`CmpList`]: https://go-testdeep.zetta.rocks/operators/list/#cmplist-shortcut |
| 400 |
[`CmpLt`]: https://go-testdeep.zetta.rocks/operators/lt/#cmplt-shortcut |
| 401 |
[`CmpLte`]: https://go-testdeep.zetta.rocks/operators/lte/#cmplte-shortcut |
| 402 |
[`CmpMap`]: https://go-testdeep.zetta.rocks/operators/map/#cmpmap-shortcut |
| 403 |
[`CmpMapEach`]: https://go-testdeep.zetta.rocks/operators/mapeach/#cmpmapeach-shortcut |
| 404 |
[`CmpN`]: https://go-testdeep.zetta.rocks/operators/n/#cmpn-shortcut |
| 405 |
[`CmpNaN`]: https://go-testdeep.zetta.rocks/operators/nan/#cmpnan-shortcut |
| 406 |
[`CmpNil`]: https://go-testdeep.zetta.rocks/operators/nil/#cmpnil-shortcut |
| 407 |
[`CmpNone`]: https://go-testdeep.zetta.rocks/operators/none/#cmpnone-shortcut |
| 408 |
[`CmpNot`]: https://go-testdeep.zetta.rocks/operators/not/#cmpnot-shortcut |
| 409 |
[`CmpNotAny`]: https://go-testdeep.zetta.rocks/operators/notany/#cmpnotany-shortcut |
| 410 |
[`CmpNotEmpty`]: https://go-testdeep.zetta.rocks/operators/notempty/#cmpnotempty-shortcut |
| 411 |
[`CmpNotNaN`]: https://go-testdeep.zetta.rocks/operators/notnan/#cmpnotnan-shortcut |
| 412 |
[`CmpNotNil`]: https://go-testdeep.zetta.rocks/operators/notnil/#cmpnotnil-shortcut |
| 413 |
[`CmpNotZero`]: https://go-testdeep.zetta.rocks/operators/notzero/#cmpnotzero-shortcut |
| 414 |
[`CmpPPtr`]: https://go-testdeep.zetta.rocks/operators/pptr/#cmppptr-shortcut |
| 415 |
[`CmpPtr`]: https://go-testdeep.zetta.rocks/operators/ptr/#cmpptr-shortcut |
| 416 |
[`CmpRe`]: https://go-testdeep.zetta.rocks/operators/re/#cmpre-shortcut |
| 417 |
[`CmpReAll`]: https://go-testdeep.zetta.rocks/operators/reall/#cmpreall-shortcut |
| 418 |
[`CmpRecv`]: https://go-testdeep.zetta.rocks/operators/recv/#cmprecv-shortcut |
| 419 |
[`CmpSet`]: https://go-testdeep.zetta.rocks/operators/set/#cmpset-shortcut |
| 420 |
[`CmpShallow`]: https://go-testdeep.zetta.rocks/operators/shallow/#cmpshallow-shortcut |
| 421 |
[`CmpSlice`]: https://go-testdeep.zetta.rocks/operators/slice/#cmpslice-shortcut |
| 422 |
[`CmpSmuggle`]: https://go-testdeep.zetta.rocks/operators/smuggle/#cmpsmuggle-shortcut |
| 423 |
[`CmpSort`]: https://go-testdeep.zetta.rocks/operators/sort/#cmpsort-shortcut |
| 424 |
[`CmpSorted`]: https://go-testdeep.zetta.rocks/operators/sorted/#cmpsorted-shortcut |
| 425 |
[`CmpSStruct`]: https://go-testdeep.zetta.rocks/operators/sstruct/#cmpsstruct-shortcut |
| 426 |
[`CmpString`]: https://go-testdeep.zetta.rocks/operators/string/#cmpstring-shortcut |
| 427 |
[`CmpStruct`]: https://go-testdeep.zetta.rocks/operators/struct/#cmpstruct-shortcut |
| 428 |
[`CmpSubBagOf`]: https://go-testdeep.zetta.rocks/operators/subbagof/#cmpsubbagof-shortcut |
| 429 |
[`CmpSubJSONOf`]: https://go-testdeep.zetta.rocks/operators/subjsonof/#cmpsubjsonof-shortcut |
| 430 |
[`CmpSubMapOf`]: https://go-testdeep.zetta.rocks/operators/submapof/#cmpsubmapof-shortcut |
| 431 |
[`CmpSubSetOf`]: https://go-testdeep.zetta.rocks/operators/subsetof/#cmpsubsetof-shortcut |
| 432 |
[`CmpSuperBagOf`]: https://go-testdeep.zetta.rocks/operators/superbagof/#cmpsuperbagof-shortcut |
| 433 |
[`CmpSuperJSONOf`]: https://go-testdeep.zetta.rocks/operators/superjsonof/#cmpsuperjsonof-shortcut |
| 434 |
[`CmpSuperMapOf`]: https://go-testdeep.zetta.rocks/operators/supermapof/#cmpsupermapof-shortcut |
| 435 |
[`CmpSuperSetOf`]: https://go-testdeep.zetta.rocks/operators/supersetof/#cmpsupersetof-shortcut |
| 436 |
[`CmpSuperSliceOf`]: https://go-testdeep.zetta.rocks/operators/supersliceof/#cmpsupersliceof-shortcut |
| 437 |
[`CmpTruncTime`]: https://go-testdeep.zetta.rocks/operators/trunctime/#cmptrunctime-shortcut |
| 438 |
[`CmpValues`]: https://go-testdeep.zetta.rocks/operators/values/#cmpvalues-shortcut |
| 439 |
[`CmpZero`]: https://go-testdeep.zetta.rocks/operators/zero/#cmpzero-shortcut |
| 440 |
|
| 441 |
[`T.All`]: https://go-testdeep.zetta.rocks/operators/all/#tall-shortcut |
| 442 |
[`T.Any`]: https://go-testdeep.zetta.rocks/operators/any/#tany-shortcut |
| 443 |
[`T.Array`]: https://go-testdeep.zetta.rocks/operators/array/#tarray-shortcut |
| 444 |
[`T.ArrayEach`]: https://go-testdeep.zetta.rocks/operators/arrayeach/#tarrayeach-shortcut |
| 445 |
[`T.Bag`]: https://go-testdeep.zetta.rocks/operators/bag/#tbag-shortcut |
| 446 |
[`T.Between`]: https://go-testdeep.zetta.rocks/operators/between/#tbetween-shortcut |
| 447 |
[`T.Cap`]: https://go-testdeep.zetta.rocks/operators/cap/#tcap-shortcut |
| 448 |
[`T.Code`]: https://go-testdeep.zetta.rocks/operators/code/#tcode-shortcut |
| 449 |
[`T.Contains`]: https://go-testdeep.zetta.rocks/operators/contains/#tcontains-shortcut |
| 450 |
[`T.ContainsKey`]: https://go-testdeep.zetta.rocks/operators/containskey/#tcontainskey-shortcut |
| 451 |
[`T.Empty`]: https://go-testdeep.zetta.rocks/operators/empty/#tempty-shortcut |
| 452 |
[`T.CmpErrorIs`]: https://go-testdeep.zetta.rocks/operators/erroris/#tcmperroris-shortcut |
| 453 |
[`T.First`]: https://go-testdeep.zetta.rocks/operators/first/#tfirst-shortcut |
| 454 |
[`T.Grep`]: https://go-testdeep.zetta.rocks/operators/grep/#tgrep-shortcut |
| 455 |
[`T.Gt`]: https://go-testdeep.zetta.rocks/operators/gt/#tgt-shortcut |
| 456 |
[`T.Gte`]: https://go-testdeep.zetta.rocks/operators/gte/#tgte-shortcut |
| 457 |
[`T.HasPrefix`]: https://go-testdeep.zetta.rocks/operators/hasprefix/#thasprefix-shortcut |
| 458 |
[`T.HasSuffix`]: https://go-testdeep.zetta.rocks/operators/hassuffix/#thassuffix-shortcut |
| 459 |
[`T.Isa`]: https://go-testdeep.zetta.rocks/operators/isa/#tisa-shortcut |
| 460 |
[`T.JSON`]: https://go-testdeep.zetta.rocks/operators/json/#tjson-shortcut |
| 461 |
[`T.JSONPointer`]: https://go-testdeep.zetta.rocks/operators/jsonpointer/#tjsonpointer-shortcut |
| 462 |
[`T.Keys`]: https://go-testdeep.zetta.rocks/operators/keys/#tkeys-shortcut |
| 463 |
[`T.Last`]: https://go-testdeep.zetta.rocks/operators/last/#tlast-shortcut |
| 464 |
[`T.CmpLax`]: https://go-testdeep.zetta.rocks/operators/lax/#tcmplax-shortcut |
| 465 |
[`T.Len`]: https://go-testdeep.zetta.rocks/operators/len/#tlen-shortcut |
| 466 |
[`T.List`]: https://go-testdeep.zetta.rocks/operators/list/#tlist-shortcut |
| 467 |
[`T.Lt`]: https://go-testdeep.zetta.rocks/operators/lt/#tlt-shortcut |
| 468 |
[`T.Lte`]: https://go-testdeep.zetta.rocks/operators/lte/#tlte-shortcut |
| 469 |
[`T.Map`]: https://go-testdeep.zetta.rocks/operators/map/#tmap-shortcut |
| 470 |
[`T.MapEach`]: https://go-testdeep.zetta.rocks/operators/mapeach/#tmapeach-shortcut |
| 471 |
[`T.N`]: https://go-testdeep.zetta.rocks/operators/n/#tn-shortcut |
| 472 |
[`T.NaN`]: https://go-testdeep.zetta.rocks/operators/nan/#tnan-shortcut |
| 473 |
[`T.Nil`]: https://go-testdeep.zetta.rocks/operators/nil/#tnil-shortcut |
| 474 |
[`T.None`]: https://go-testdeep.zetta.rocks/operators/none/#tnone-shortcut |
| 475 |
[`T.Not`]: https://go-testdeep.zetta.rocks/operators/not/#tnot-shortcut |
| 476 |
[`T.NotAny`]: https://go-testdeep.zetta.rocks/operators/notany/#tnotany-shortcut |
| 477 |
[`T.NotEmpty`]: https://go-testdeep.zetta.rocks/operators/notempty/#tnotempty-shortcut |
| 478 |
[`T.NotNaN`]: https://go-testdeep.zetta.rocks/operators/notnan/#tnotnan-shortcut |
| 479 |
[`T.NotNil`]: https://go-testdeep.zetta.rocks/operators/notnil/#tnotnil-shortcut |
| 480 |
[`T.NotZero`]: https://go-testdeep.zetta.rocks/operators/notzero/#tnotzero-shortcut |
| 481 |
[`T.PPtr`]: https://go-testdeep.zetta.rocks/operators/pptr/#tpptr-shortcut |
| 482 |
[`T.Ptr`]: https://go-testdeep.zetta.rocks/operators/ptr/#tptr-shortcut |
| 483 |
[`T.Re`]: https://go-testdeep.zetta.rocks/operators/re/#tre-shortcut |
| 484 |
[`T.ReAll`]: https://go-testdeep.zetta.rocks/operators/reall/#treall-shortcut |
| 485 |
[`T.Recv`]: https://go-testdeep.zetta.rocks/operators/recv/#trecv-shortcut |
| 486 |
[`T.Set`]: https://go-testdeep.zetta.rocks/operators/set/#tset-shortcut |
| 487 |
[`T.Shallow`]: https://go-testdeep.zetta.rocks/operators/shallow/#tshallow-shortcut |
| 488 |
[`T.Slice`]: https://go-testdeep.zetta.rocks/operators/slice/#tslice-shortcut |
| 489 |
[`T.Smuggle`]: https://go-testdeep.zetta.rocks/operators/smuggle/#tsmuggle-shortcut |
| 490 |
[`T.Sort`]: https://go-testdeep.zetta.rocks/operators/sort/#tsort-shortcut |
| 491 |
[`T.Sorted`]: https://go-testdeep.zetta.rocks/operators/sorted/#tsorted-shortcut |
| 492 |
[`T.SStruct`]: https://go-testdeep.zetta.rocks/operators/sstruct/#tsstruct-shortcut |
| 493 |
[`T.String`]: https://go-testdeep.zetta.rocks/operators/string/#tstring-shortcut |
| 494 |
[`T.Struct`]: https://go-testdeep.zetta.rocks/operators/struct/#tstruct-shortcut |
| 495 |
[`T.SubBagOf`]: https://go-testdeep.zetta.rocks/operators/subbagof/#tsubbagof-shortcut |
| 496 |
[`T.SubJSONOf`]: https://go-testdeep.zetta.rocks/operators/subjsonof/#tsubjsonof-shortcut |
| 497 |
[`T.SubMapOf`]: https://go-testdeep.zetta.rocks/operators/submapof/#tsubmapof-shortcut |
| 498 |
[`T.SubSetOf`]: https://go-testdeep.zetta.rocks/operators/subsetof/#tsubsetof-shortcut |
| 499 |
[`T.SuperBagOf`]: https://go-testdeep.zetta.rocks/operators/superbagof/#tsuperbagof-shortcut |
| 500 |
[`T.SuperJSONOf`]: https://go-testdeep.zetta.rocks/operators/superjsonof/#tsuperjsonof-shortcut |
| 501 |
[`T.SuperMapOf`]: https://go-testdeep.zetta.rocks/operators/supermapof/#tsupermapof-shortcut |
| 502 |
[`T.SuperSetOf`]: https://go-testdeep.zetta.rocks/operators/supersetof/#tsupersetof-shortcut |
| 503 |
[`T.SuperSliceOf`]: https://go-testdeep.zetta.rocks/operators/supersliceof/#tsupersliceof-shortcut |
| 504 |
[`T.TruncTime`]: https://go-testdeep.zetta.rocks/operators/trunctime/#ttrunctime-shortcut |
| 505 |
[`T.Values`]: https://go-testdeep.zetta.rocks/operators/values/#tvalues-shortcut |
| 506 |
[`T.Zero`]: https://go-testdeep.zetta.rocks/operators/zero/#tzero-shortcut |
| 507 |
<!-- links:end --> |