-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(mock): migrate mock package and enhance clarity in tests (#126)
* chore(mock): migrate mock package and enhance clarity in tests - Update dependency from `github.com/golang/mock` to `go.uber.org/mock` - Remove unused import from `mocks/mocks.go` - Change parameter type from `interface{}` to `any` in mock recorder functions - Add generated comments in mock files for clarity - Adjust import statements in test files to reflect the new mock package Signed-off-by: appleboy <[email protected]> * ci: update CI configuration for Ubuntu-only builds - Change the operating system matrix to only include `ubuntu-latest` Signed-off-by: appleboy <[email protected]> * ci: upgrade golangci-lint action to version 6 - Update golangci-lint action version from v4 to v6 Signed-off-by: appleboy <[email protected]> --------- Signed-off-by: appleboy <[email protected]>
- Loading branch information
Showing
8 changed files
with
21 additions
and
36 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
package mocks | ||
|
||
import _ "github.com/golang/mock/mockgen/model" | ||
|
||
//go:generate mockgen -package=mocks -destination=mock_worker.go github.com/golang-queue/queue/core Worker | ||
//go:generate mockgen -package=mocks -destination=mock_message.go github.com/golang-queue/queue/core QueuedMessage |
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