github uber-go/mock v0.5.0

latest releases: v0.6.0, bazel_rule_v0.2.0, bazel_rule_v0.1.0...
17 months ago

0.5.0 (15 Oct 2024)

Added

  • #153: Add --write_command_comment flag to specify whether to include
    Generated by this command comment.
  • #191: Add --build_constraint flag to add //go:build directives
    to generated mocks
  • #214: Add gob mode to support custom package loading techniques in place
    of --exec_only

Changed

  • #181: Made mockgen faster by changing flags passed to go list.
  • #183: Made Cond matcher generic.
  • #204: Removed ISGOMOCK() from generated mocks.
  • #207: Deprecated reflect mode and replaced it with the new package mode.

Fixed

  • #144: Fix a deadlock that can happen when mocking an interface that
    matches fmt.Stringer.
  • #168: Fix an issue where the "generated by" comment was being included
    in the package comment of generated mocks.

Thanks to @tulzke @JacobOaks @ARR4N @sashamelentyev @sywhang @fasmat
@eyasy1217 @ghouscht @tie @Neo2308 @carson-brill @alexandear @sodul
@nbgraham for their contributions this release.

Don't miss a new mock release

NewReleases is sending notifications on new releases.