Alanxtl commented on code in PR #3699:
URL: https://github.com/apache/dubbo-go/pull/3699#discussion_r3841245835


##########
tools/dubbogo-cli/cmd/gen_test.go:
##########
@@ -95,6 +95,21 @@ func TestGeneratedProjectsIncludeDependencyLocks(t 
*testing.T) {
        }
 }
 
+func TestGeneratedProjectsDoNotIncludeLegacyMockDependency(t *testing.T) {
+       const legacyMockDependency = "github.com/golang/mock"
+
+       for _, tc := range generatedProjectCases() {
+               t.Run(tc.name, func(t *testing.T) {
+                       genPath := filepath.Join(t.TempDir(), tc.name)
+                       require.NoError(t, tc.generate(genPath))
+
+                       content, err := os.ReadFile(filepath.Join(genPath, 
"go.sum"))
+                       require.NoError(t, err)
+                       require.NotContains(t, string(content), 
legacyMockDependency)
+               })
+       }
+}

Review Comment:
   unnescssary



##########
Makefile:
##########
@@ -83,6 +83,9 @@ test-race: clean ## Run unit tests with the race detector
        $(GO_RUN) test ./... -race -skip '^($(subst 
$(space),|,$(RACE_SKIP_TESTS)))$$' -coverprofile=$(CURDIR)/$(COVERAGE_FILE) 
-covermode=atomic
        cd $(CLI_DIR) && $(GO_RUN) test ./... -race
 
+generate-mocks: ## Regenerate GoMock implementations with the pinned generator
+       $(GO_RUN) generate ./cluster/metrics ./filter ./protocol/base

Review Comment:
   is this command really necessary?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to