go-testdeep v1.3.0 Release Notes
Release Date: 2020-02-29 // about 4 years ago-
๐ฆ Package
github.com/maxatome/go-testdeep
is deprecated, it is recommended to usegithub.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 bytd.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 iftestdeep.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!