Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Go 1.24 #5

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

jonathansharman
Copy link
Contributor

@jonathansharman jonathansharman commented Feb 12, 2025

Description

This updates dependencies so that mock will work on Go 1.24.

Testing Considerations

  1. Install Go 1.24.
  2. Install this module.
  3. Run go:generate

Versioning

main

jonathansharman and others added 29 commits February 24, 2023 10:37
`go get -u` for installation is deprecated in favor of `go install`.
Can use go:generate go run ... to use without requiring installation.

This also fixes a typo and uses *_mock.go for the example mock file.
allow testing.T to throw error instead of panicking
mocks are often defined in packages other than where they are used; maybe that shouldn't be the case but that's the state of things
Update template to allow mock to take testing.T
Support mock generation for generic interfaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants