-
Notifications
You must be signed in to change notification settings - Fork 161
Comparing changes
Open a pull request
base repository: uber-go/mock
base: v0.3.0
head repository: uber-go/mock
compare: v0.4.0
- 18 commits
- 66 files changed
- 14 contributors
Commits on Sep 18, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c8f6e38 - Browse repository at this point
Copy the full SHA c8f6e38View commit details -
This adds a tool for extracting changelog from the CHANGELOG.md file to ease up release notes creation.
Configuration menu - View commit details
-
Copy full SHA for 851bb6a - Browse repository at this point
Copy the full SHA 851bb6aView commit details -
goreleaser config - fix owner (#87)
binary uploads are failing because we moved this repo from the `uber` GitHub org to `uber-go` GitHub org, so uploads are getting 307 response.
Configuration menu - View commit details
-
Copy full SHA for 3377b02 - Browse repository at this point
Copy the full SHA 3377b02View commit details
Commits on Sep 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for fcaca4a - Browse repository at this point
Copy the full SHA fcaca4aView commit details
Commits on Sep 25, 2023
-
proposal: ignore interfaces that contains type constraints (#93)
This is a proposal PR to generate mocks without error for following cases: ```go type Water[R any, C UnsignedInteger] interface { Fish(R) []C } type UnsignedInteger interface { ~uint | ~uint32 | ~uint64 } ``` Go `types` package seems to wrap interfaces that contain type constraints by checking a type set literal of the form `~T` and `A|B`. https://github.com/golang/go/blob/master/src/go/types/decl.go#L668 So gomock can just ignore that pattern to generate mocks safely without `don't know how to mock method of type` errors. I think this can be a better solution for custom type constraints than [`-exclude` flag](#72). --------- Co-authored-by: Jacob Oaks <jacoboaks.8@gmail.com>Configuration menu - View commit details
-
Copy full SHA for 7842e1d - Browse repository at this point
Copy the full SHA 7842e1dView commit details
Commits on Oct 11, 2023
-
Remove CONTRIBUTORS file (#107)
While Uber has forked mock the CONTRIBUTRORS file still reflects Google's contents. Delete the file for now to prevent confusion.
Configuration menu - View commit details
-
Copy full SHA for ba1343d - Browse repository at this point
Copy the full SHA ba1343dView commit details -
Add tip for signing Uber's CLA (#108)
Now that we've removed the old CONTRIBUTORS file, update the CONTRIBUTING.md with a tip for signing Uber's CLA. This follows the CONTRIBUTING.md tip for Fx. ref: https://github.com/uber-go/fx/blob/master/CONTRIBUTING.md
Configuration menu - View commit details
-
Copy full SHA for 5536487 - Browse repository at this point
Copy the full SHA 5536487View commit details -
Configuration menu - View commit details
-
Copy full SHA for bdd3140 - Browse repository at this point
Copy the full SHA bdd3140View commit details -
Configuration menu - View commit details
-
Copy full SHA for 892b665 - Browse repository at this point
Copy the full SHA 892b665View commit details
Commits on Oct 17, 2023
-
Fix 111: Package comments are now split correctly from the rest of th…
…e comments (#112) This allows package comments to be generated following the rules here: https://staticcheck.io/docs/checks#ST1000 **Before:** ```go // mockgen -destination demo/mock.go -package demo . Demoer // // Package demo is a generated GoMock package. package demo ``` **After:** ```go // mockgen -destination demo/mock.go -package demo . Demoer // // Package demo is a generated GoMock package. package demo ```
Configuration menu - View commit details
-
Copy full SHA for b233940 - Browse repository at this point
Copy the full SHA b233940View commit details
Commits on Oct 30, 2023
-
feat: add Regex() matcher (#114)
Add a matcher for matching against regular expressions
Configuration menu - View commit details
-
Copy full SHA for 94a7ac3 - Browse repository at this point
Copy the full SHA 94a7ac3View commit details
Commits on Nov 9, 2023
-
Use path.Join for expected package paths (#121)
To fix unit test on windows and address #120
Configuration menu - View commit details
-
Copy full SHA for 7fb6390 - Browse repository at this point
Copy the full SHA 7fb6390View commit details
Commits on Nov 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 857e269 - Browse repository at this point
Copy the full SHA 857e269View commit details -
MockGen header comment: trim .exe suffix on Windows (#119)
To address #118 --------- Co-authored-by: Marten Seemann <martenseemann@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5b48f95 - Browse repository at this point
Copy the full SHA 5b48f95View commit details -
added a description of the exclude_interfaces flag to the README (#123)
I forgot to do this when I created the last PR #72
Configuration menu - View commit details
-
Copy full SHA for 7bf3d91 - Browse repository at this point
Copy the full SHA 7bf3d91View commit details
Commits on Dec 19, 2023
-
Fixed -mockNames not propagating to Recorder and ReturnCall types (#127)
When you are trying to mock multiple interfaces with the same name and similar methods (for example user.Service Create, post.Service Create, etc..) there is collision in Recorder and ReturnCall types, the -mockNames parameter only changes the main interface name, with the changes proposed in this PR the correct mockName will be applied to the Recorder and ReturnCall types. Addresses #117
Configuration menu - View commit details
-
Copy full SHA for 6dd8fe5 - Browse repository at this point
Copy the full SHA 6dd8fe5View commit details
Commits on Dec 20, 2023
-
mockgen: Sanitize the "any" package name (#132)
When a package name is "any" mockgen will use that as a package name in the generated code which causes issues due to colliding with Go's "any" type. Update the sanitization logic to prevent this collision.
Configuration menu - View commit details
-
Copy full SHA for 37f6db3 - Browse repository at this point
Copy the full SHA 37f6db3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74a29c6 - Browse repository at this point
Copy the full SHA 74a29c6View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.3.0...v0.4.0