-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle interface method name conflicts in cmg (#527)
- Fix #260 by checking if the `Set<method>`, `Set<method>`, and `HasMore` methods are already part of an interface and if they are, adding a `Mock` suffix, and if that is still not unique adding a unique numeric suffix after that. Examples: `Set<method>Mock`, `Add<method>Mock`, `HasMoreMock1`. - Use `runtime/debug.BuildInfo` to find the version in `cmg` since golang/go#50603 is implemented with Go 1.24 which Clue now requires.
- Loading branch information
1 parent
6fbc395
commit 456b083
Showing
12 changed files
with
302 additions
and
72 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 76 additions & 4 deletions
80
mock/cmd/cmg/pkg/generate/_tests/conflicts/mocks/conflicts.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.