CARVIEW |
Select Language
HTTP/2 200
date: Tue, 29 Jul 2025 03:26:37 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"8322bb5770d7987fda74cd0cf413003f"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=JLyzIPfc0CRH8Pfl%2F4FqtPBlilZAH2rZb2SEALAUoD5FC6vL%2Fvo15Wp8X0lU%2BxOGsIAYK%2Bpw1OfYn8XOOj9nncfS%2Bq%2FHIf9N9fu4SRfiDYCy5U4juoCnqDQgQIkyDJAsGuxy4uYTsm2okbFIP%2Fo%2BJdNSTwLgBdxzFkvBwjdxcLw2lM5s2jU7Op1qfFwd6a8Es6DcE6nk0UB9cqivxR3i5V9KpASTXZANMxEDplLp1ZPtiP%2BAibKBSapQEEXQds1bamhhvAdzBvmSwnVCNSKGrw%3D%3D--Om2y0tn1%2FB%2BlUfzX--VLBnZB%2B64Jj3YUgR1wdyaQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1419119203.1753759597; Path=/; Domain=github.com; Expires=Wed, 29 Jul 2026 03:26:37 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 29 Jul 2026 03:26:37 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B282:244FAD:22727C:326460:68883F6D
Release v1.13.0 · maxatome/go-testdeep · GitHub
Loading
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 15
v1.13.0
Compare
Features
- New operators:
ErrorIs
to check the data is an error and matches a wrapped error (useserrors.Is
behind the scene),First
to find the first matching item of a slice or an array then compare its content,Grep
to reduce a slice or an array before comparing its content,Last
to find the last matching item of a slice or an array then compare its content,Recv
to read from a channel and test value;
- rework of
JSON
parsing:- introduction of raw strings,
- literal
\n
,\r
&\t
accepted in strings, $^Operator(params...)
is possible,"$^Operator(params...)"
is possible,Operator
(without parenthesis) is possible,- accepts
json.RawMessage
;
- anchoring is now possible using
td.A
andtd.Anchor
, the generic versions oftd.T.A
andtd.T.Anchor
; td.Flatten
now accepts an optional function to filter and/or transform the items before flattening them;*td.T
gainsAssert
andRequire
methods, to be consistent with existingtd.Assert
andtd.Require
;- introduce
td.S
function, to produce strings without needingfmt
, shorter to write and following the same calling convention as test names (in other words auto-detectingPrintf
like format); - new
TestDeepInGotOK
config to allow to test go-testdeep operators (is forbidden by default, but useful when go-testdeep is used outside golang tests) includingtd.T.TestDeepInGotOK
method; tdhttp
package:tdhttp.TestAPI
can now test HTTP responses as a whole (CmpResponse
) as well as HTTP trailer (CmpTrailer
),tdhttp.PostForm
andtdhttp.TestAPI.PostForm
now also accepttdhttp.Q
as data.
As usual: enjoy! :)
What's changed in details
- docs(README): v1.12.0 release announce by @maxatome in #212
- fix(doc,tdhttp): typo by @Linkid in #213
- Some refactoring by @maxatome in #214
- docs: fix typo by @maxatome in #215
- Grep, First & Last operators by @maxatome in #216
- refactor: go1.16 required now, so drop support for go1.9 to go1.15 by @maxatome in #221
- feat: add ErrorIs operator by @maxatome in #220
- fix(Recv): timeout can mask expected value by @maxatome in #222
- feat(tdhttp): add TestAPI's CmpResponse & CmpTrailer by @maxatome in #219
- feat: replacing bytes.Buffer instances used only to generate strings with strings.Builder. by @ellisonleao in #224
- feat(JSON): operators possible in JSON strings by @maxatome in #217
- refactor: Replace(a, b, -1) → ReplaceAll(a, b) by @maxatome in #226
- feat: go1.20 introduces slice to array convertibility by @maxatome in #227
- feat(tdhttp): allow usage of tdhttp.Q when using PostForm helpers by @c-roussel in #228
- fix(internal/json): avoid data race by @maxatome in #229
- feat: add TestDeepInGotOK allowing to test td.TestDeep operators by @maxatome in #230
- feat(internal): add (*ctxerr.Error).ErrorWithoutColors method by @maxatome in #231
- feat: add generic functions td.Anchor and td.A, another way to anchor by @maxatome in #232
- ci: test with go1.20 by @maxatome in #233
- style: remove useless comment by @maxatome in #234
- docs: fix README typo by @maxatome in #235
- feat(JSON): accept json.RawMessage as input by @deathiop in #237
- Flatten++ by @maxatome in #236
- chore: cosmetic changes before the release by @maxatome in #238
Full Changelog: v1.12.0...v1.13.0
Assets 2
You can’t perform that action at this time.