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 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!