go-testdeep v1.6.0 Release Notes
Release Date: 2020-05-31 // almost 4 years ago-
🔄 Changes:
- ✅
td.TestingFT
interface is deprecated (but still usable) and superseded bytesting.TB
standard one: it allows to work with*testing.B
instances as well (or any other type implementingtesting.TB
); ✅
(*td.T).RunT()
is deprecated (but still usable) and superseded by(*td.T).Run()
which now delegates totd.T.TB
if it implements aRun()
method with the following signature:(X) Run(string, func(X)) bool
💥 Breaking changes:
- ✅ as
td.TestingFT
interface is now an alias ontesting.TB
, it does not containRun(string, func (*testing.T)) bool
anymore; it is quite unlikely that
(*td.T).Run(string, func (*testing.T))
method is used, but if it is, all calls have to be replaced by(*td.T).Run(string, func (*td.T))
like in:tt.Run("my_test", func (tt *td.T) { t := tt.TB.(testing.T) ...})
✅ note that even though
(*td.T).RunT()
is deprecated, it still works as expected. - ✅