Skip to content

v4.0.0

Compare
Choose a tag to compare
@petergtz petergtz released this 11 May 16:10
· 6 commits to main since this release

Changes

This release removes a lot of cruft from Pegomock. Reflection-based and sourced-based mock generation have been removed, because they don't support generics. The only and default method for mock generation is based on golang.org/x/tools/go/packages.

It also removes a lot matchers and matcher code, that is not necessary anymore, now that matchers can use generics too.

The README was updated to document these changes.

Migrating code from v3 to v4

Replace all matcher calls such as EqString(...) and EqInt(...) with the simpler Eq(...).