Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Releases: golang/mock

v1.6.0

11 Jun 20:35
aba2ff9
Compare
Choose a tag to compare

Changelog

317c030 Best effort guesses for output package path (#547)
c59ba11 add ARM to support apple M1 chip to releaser (#562)
58935d8 add a basic CONTRIBUTING.md (#535)
a5582fc add docs on 1.16 install and adding to PATH (#534)
0cd3aaf add flags documentation (#539)
64b0b80 add notes and error helper for vendor+reflect error (#567)
e303461 add type information to error messages (#559)
0cdccf5 feat add InAnyOrder matcher (#546)
82ce4a7 feat validate Do & DoReturn args (#558)
93308c3 fix broken badge (#525)
9336b7e fix error message in parse.go (#540)
ab03293 fix ill-formatted message with fmt-verbs like %s (#564)
bb5fd5e fix linter errors (#552)
aba2ff9 fix parse array with the external const correctly (#569)
6ff1070 fix parse arrays with const length correctly (#520)
7f5f64d fixup some docs and templates (#524)
7078515 refactor go:generate lines so they are consistently placed (#527)
7105dde refactor mockgen and cleanup (#536)
f36d14a test(sample/user_test.go): minor correction at t.Errorf (#544)
ef4ad87 update CI for 1.16 (#526)
ad820b0 update Finish docs for Go1.14+ (#556)
2421472 update dependencies (#528)
953a5bb update user mock to be in test package (#566)
d19a212 upgrade dependencies (#557)

v1.5.0

19 Feb 23:13
a23c5e7
Compare
Choose a tag to compare

Changelog

0b87a54 Add a period to the end of comments (#414)
d2fe5cd Add example for Call.Do and Call.DoAndReturn (#470)
91d4b5c Add tests for various Do/DoAndReturn calls (#430)
92f53b0 Avoid using packages.Load (#420)
aff3767 Fix empty error message when call is exhausted (#460)
8734ec5 Format generated files with goimports (#458)
69e02d3 MOCK-429: add support for assignable types to Eq matcher (#481)
d476d65 Parse parenthesized parameter-type. (#421)
ccaa079 Using pacakges.NeedName (#418)
f67ce0c add CODEOWNERS file (#522)
6d816de add default calling of ctrl.Finish() in go1.14+ (#422)
7b53c4d check error for os.Setenv in parse_test.go (#472)
b9a8584 deduplicate methods to allow overlapping methods on embedded interfaces (#498)
10192bd fix 1.11 ga test failure (#511)
dcd893e fix Test_createPackageMap for 1.15 (#512)
44e6f1e fix docs for AssignableToTypeOf (#452)
a23c5e7 fix issues related to source package imports (#507)
11d9cab fix readme docs on removing Finish calls (#461)
0f6dc21 format variadic arguments with GotFormatter (#434)
d9ac678 gomock/controller: use skip additional frame (#443)
8a3d595 mockgen: handle more cases of "duplicate" imports (#405)
9cb0a11 remove rsc.io/quote/v3 as dep (#465)
872e315 remove travis config (#513)
1fe605d sort methods on the mock implementation alphabetically (#500)
5b2ea10 support embedded error interface in source mode (#445)
b76a85f support multi-path gopath (#435)
eb4f989 surface panic when calling Finish is implicit (#478)
000792a test out GH actions (#508)
99aa927 update readme spacing (#495)

v1.4.4

28 Jul 20:56
Compare
Choose a tag to compare

Changes

  • Removed dependency on rsc.io/quote/v3

v1.4.3

16 Mar 15:07
3a35fb6
Compare
Choose a tag to compare
  • 3a35fb6 Revert "Fix #71 Do + DoAndReturn signature change error msg (#395)" (#413)
    • This was an accidental breaking change in behavior introduced in v1.4.2

v1.4.2

13 Mar 22:16
064e67a
Compare
Choose a tag to compare

v1.4.1

27 Feb 03:34
b48cb66
Compare
Choose a tag to compare

0188501 Goreleaser (#394)
b48cb66 Improve performance of mock generation (#397)
41fe4f7 Reflect in Current Directory First (#390)
5c85495 Use "." to refer to the current path's package in reflect mode (#387)

v1.4.0

22 Jan 03:07
3dcdcb6
Compare
Choose a tag to compare

193ff6f #358 add template for PR and bug report (#361)
f165686 Add Mockgen Version Flag (#362)
41e7e9a Add a CI check for go vet and go lint (#345)
d1dd49b Added self_package option to readme (#355)
112dfb8 Adds GotFormatter interface and WantFormatter func (#236)
1bf84fa Allow AssignableToTypeOf reflect.Type (#365)
176c208 Allow mockgen to execute from outside go modules
e00cb15 Always remove self_package import (#343)
140ae90 Fix small typo in Controller example (#295)
45682d7 Pass -build_flags as Multiple Args (#357)
2b692ab Simplified Go code
0e690d0 Update documentation on MinTimes and MaxTimes (#334)
7968cef Update issue templates (#363)
cbd2e35 Update mockgen installation docs
9be4808 add All matcher (#367)
b4b7d21 add Len matcher (#368)
de9f6c5 add benchmark for parse file (#372)
577071b ci: add 1.13 testing (#337)
0d12903 fix feature request template (#364)
817c00c fix generates non-compilable code (#371)
3dcdcb6 fix not resolving go module major versions (#385)
693e3a8 fix pr template (#366)
29da289 fix several linting warnings (#374)
dd8d2a2 fix small typo in comments (#314)
3251ae5 fix tests passing when they should not (#378)
1b95bd9 fix: avoid constructing improper import graph (#383)
3fae808 include binaries with tagged releases via GoReleaser (#229)
0800f9a refactor method names for reflect/source (#376)

v1.3.1

08 May 16:24
@poy poy
Compare
Choose a tag to compare

Bug Fixes

  • Tidy up go module files

v1.3.0

02 May 19:38
@poy poy
Compare
Choose a tag to compare

Bug Fixes:

  • ensure package name is included when necessary (#247)

Features:

  • Add support for go modules (#230)
  • Add --copyright_flag (#234)
  • Log error while deleting temp directory
  • Add support for go 1.12 and drop support for go 1.9 and go 1.10
  • Removes vendor directory

v1.2.0

08 Dec 05:51
@poy poy
Compare
Choose a tag to compare
mockgen: use Controller.Helper() in generated mocks

Using T.Helper() better directs the callstack to point at the
offending line in the production code.

fixes #239