Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
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 =go.uber.org/mock/mockgen
MOCKGEN_VERSION =v0.4.0

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

.PHONY: mock
mock: ## Generates mock files
go get $(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
2 changes: 1 addition & 1 deletion actor/manager/container_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ package manager
import (
"testing"

"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.uber.org/mock/gomock"

actorErr "github.com/dapr/go-sdk/actor/error"
actorMock "github.com/dapr/go-sdk/actor/mock"
Expand Down
19 changes: 12 additions & 7 deletions actor/mock/mock_codec.go

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

13 changes: 9 additions & 4 deletions actor/mock/mock_container.go

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

29 changes: 17 additions & 12 deletions actor/mock/mock_manager.go

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

Loading