WangzJi opened a new pull request, #985: URL: https://github.com/apache/incubator-seata-go/pull/985
Add comprehensive tests for pkg/discovery/mock and pkg/integration packages to address issues #947 and #948. New test files: - pkg/discovery/mock/mock_etcd_client_test.go: Tests for MockEtcdClient including all mock methods (Get, Put, Delete, Watch, Close, etc.) - pkg/integration/integration_test.go: Tests for Init() function and dubbo integration initialization Coverage achieved: - pkg/discovery/mock: 95.2% - pkg/integration: 100% Both packages now exceed the 70% coverage target. <!-- Thanks for sending a pull request! --> **What this PR does**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. _If PR is about `failing-tests or flakes`, please post the related issues/tests in a comment and do not use `Fixes`_* --> Fixes #947 Fixes #948 **Special notes for your reviewer**: **Does this PR introduce a user-facing change?**: <!-- If no, just write "NONE" in the release-note block below. If yes, a release note is required: Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required". --> ```release-note ``` -- 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]
