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

Add tests for stateManagerCtx #558

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: add a new target mock in Makefile and update mock files
Signed-off-by: KentHsu <chiahaohsu9@gmail.com>
KentHsu committed May 3, 2024
commit 71fda3ec8ce8ed33a7d4acd3751f1a20e5242649
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
RELEASE_VERSION =v1.0.0-rc-3
GDOC_PORT =8888
GO_COMPAT_VERSION=1.21
MOCKGEN_FORK =github.com/golang/mock/mockgen
MOCKGEN_VERSION =v1.6.0

.PHONY: all
all: help
@@ -57,3 +59,11 @@ check-diff:
.PHONY: modtidy
modtidy:
go mod tidy

.PHONY: mock
mock: ## Generates mock files
go install $(MOCKGEN_FORK)@$(MOCKGEN_VERSION)
mockgen -source ./actor/manager/manager.go -destination ./actor/mock/mock_manager.go -package mock
mockgen -source ./actor/manager/container.go -destination ./actor/mock/mock_container.go -package mock
mockgen -source ./actor/codec/codec.go -destination ./actor/mock/mock_codec.go -package mock
mockgen -source ./client/client.go -destination ./actor/mock_client/mock_client.go -package mock_client
4 changes: 2 additions & 2 deletions actor/mock/mock_codec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion actor/mock/mock_container.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion actor/mock/mock_manager.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion actor/mock/mock_server.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.