v1.3.0
Package github.com/maxatome/go-testdeep
is deprecated, it is recommended to use github.com/maxatome/go-testdeep/td
in new code.
github.com/maxatome/go-testdeep
is still usable so the compatibility is preserved.
The only breaking change is the disappearance of testdeep.DefaultContextConfig
. It should be replaced by td.DefaultContextConfig
and so the go-testdeep import line should be changed (at least "github.com/maxatome/go-testdeep/td" should be added).
To summarize: migration to github.com/maxatome/go-testdeep/td
is not needed, only recommended, except if testdeep.DefaultContextConfig
is used.
To migrate:
import "github.com/maxatome/go-testdeep"
…
testdeep.DefaultContextConfig = testdeep.ContextConfig{…}
testdeep.Cmp(…)
or with "td" package alias:
import td "github.com/maxatome/go-testdeep"
…
td.DefaultContextConfig = td.ContextConfig{…}
td.Cmp(…)
simply do (see import line changes):
import "github.com/maxatome/go-testdeep/td"
…
td.DefaultContextConfig = td.ContextConfig{…}
td.Cmp(…)
See the FAQ point for details about this migration.
And still, do not forget to visit https://go-testdeep.zetta.rocks/ and open an issue if something seems to be missing or not clear.
Happy testing!