go-testdeep v1.1.0 Release Notes
Release Date: 2019-07-07 // almost 5 years ago-
๐ New features:
- ๐ introducing
UseEqual
feature to allow an objet to handle its comparison. SeeT.UseEqual
andContextConfig.UseEqual
for details; - โ
tdhttp.NewRequest()
,tdhttp.NewJSONRequest()
andtdhttp.NewXMLRequest()
now accept headers definition; - โ Test name now colored in error reports;
- Missing/Extra summaries show the number of involved items/keys;
- Extra & missing maps items are now sorted;
- โ
Cmp
function/method now replacesCmpDeeply
(still available for backward compatibility); - โ Add new
Keys
andValues
operators; - โ
Code
&Smuggle
operators explicitly refuse variadic functions (and so avoid uncontrolled runtime panic).
๐ฅ Breaking changes:
- โ
*testdeep.T
now implementstestdeep.TestingFT
:- previous
Run()
method renamed toRunT()
, - un-shadow
Run(string, func(t*testing.T))
โ if you usedT.Run
just rename occurrences toT.RunT
, NewT()
handles*testdeep.T
as argument,
- previous
- โ
Do not export
testdeep.Base
andtestdeep.BaseOKNil
anymore. Should not be a problem. If it is, raise an issue.
๐ Bugs fixes:
- ๐ Fix a bug when compared slices have the same backend array.
Misc:
- ๐ Switch from gometalinter to GolangCI-Lint + enable more linters;
- ๐ pre-go1.12 t.Helper() bug workaround removed as corrected upstream;
- map iterations done with
reflect.MapIter
if goโฅ1.12; - logo changed a little :)
- ๐ introducing