This PR is to add comments to GetCommonLabelName in fluid/pkg/ddc/base/validate_test.go.#5817
Conversation
…t.go. Signed-off-by: mt <599155198@qq.com>
|
Hi @github2134243. Thanks for your PR. I'm waiting for a fluid-cloudnative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
There was a problem hiding this comment.
Code Review
This pull request adds a descriptive comment and spacing to the GetCommonLabelName method in pkg/ddc/base/validate_test.go. The review feedback recommends simplifying the comment to improve accuracy and removing the newlines to ensure the code remains consistent with the existing style of grouped mock stubs.
|
|
||
| // GetCommonLabelName returns the common label name used in runtime validation. | ||
| // This is a stub implementation for mockRuntimeInfoForValidate and returns | ||
| // an empty string as it is only used for testing purposes. |
There was a problem hiding this comment.
The added comment is misleading as GetCommonLabelName is not used in the ValidateRuntimeInfo function, which is the primary focus of this mock. Additionally, the comment is overly verbose for a simple test stub, and the extra newline at line 87 breaks the visual consistency of the mock's method definitions, which are otherwise grouped together without spaces. Consider using a more concise and accurate comment while maintaining the existing code style.
| // GetCommonLabelName returns the common label name used in runtime validation. | |
| // This is a stub implementation for mockRuntimeInfoForValidate and returns | |
| // an empty string as it is only used for testing purposes. | |
| // GetCommonLabelName returns the common label name. |
| // This is a stub implementation for mockRuntimeInfoForValidate and returns | ||
| // an empty string as it is only used for testing purposes. | ||
| func (m *mockRuntimeInfoForValidate) GetCommonLabelName() string { return "" } | ||
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #5817 +/- ##
=======================================
Coverage 58.17% 58.17%
=======================================
Files 478 478
Lines 32477 32477
=======================================
Hits 18894 18894
Misses 12040 12040
Partials 1543 1543 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…t.go. Signed-off-by: mt <599155198@qq.com>
…t.go. Signed-off-by: mt <599155198@qq.com>
…t.go. Signed-off-by: mt <599155198@qq.com>
…t.go. Signed-off-by: mt <599155198@qq.com>
…t.go. Signed-off-by: mt <599155198@qq.com>
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheyang The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |



I. Describe what this PR does
Add comments to GetCommonLabelName in fluid/pkg/ddc/base/validate_test.go.
II. Does this pull request fix one issue?
fixes #5816
III. Special notes for reviews