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

[ISSUE #8417]add some test cases for org.apache.rocketmq.common.AclConfig #8418

Merged
merged 2 commits into from
Jul 23, 2024
Merged

[ISSUE #8417]add some test cases for org.apache.rocketmq.common.AclConfig #8418

merged 2 commits into from
Jul 23, 2024

Conversation

TeFuirnever
Copy link
Contributor

Which Issue(s) This PR Fixes

[Enhancement] Add test cases for org.apache.rocketmq.common.AclConfig #8417

Fixes #8417

Brief Description

add some test cases for org.apache.rocketmq.common.AclConfig.

How Did You Test This Change?

run test case successfull.
image

add test case for AclConfig in commom module
Fixes #8417

Brief Description
add test case for AclConfig in commom module by using tongyi tools.

How Did You Test This Change?
run test case successfull.
@TeFuirnever TeFuirnever changed the title [ISSUE #8417]add some test cases for org.apache.rocketmq.common.AclConfig #8417 [ISSUE #8417]add some test cases for org.apache.rocketmq.common.AclConfig Jul 21, 2024
@TeFuirnever
Copy link
Contributor Author

for soc in #8262 .

public class AclConfigTest {

/**
* Test to verify that getGlobalWhiteAddrs returns null when no addresses have been set.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test classes do not require method comments.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it to remove all method level comments?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's not necessary in test class.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, why does my check item show "7 workflows awaiting approval"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, it's first contribution, need the approval of the committer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much, I've modified it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to bother you again, is codecov-commenter triggered automatically or do you need to trigger it manually?
image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ci automatically triggered.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ci automatically triggered.

Thank you very much

@TeFuirnever TeFuirnever requested a review from yx9o July 21, 2024 11:02
[Enhancement] Add test cases for org.apache.rocketmq.common.AclConfig #8417

Fixes #8417

Brief Description
add some test cases for org.apache.rocketmq.common.AclConfig.

How Did You Test This Change?
run test case successfull.
@ShannonDing ShannonDing added the soc Summer of Code, hosted by Google, Alibaba, Chinese Academy of Sciences and so on label Jul 22, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.09%. Comparing base (d9d53d5) to head (707911c).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #8418      +/-   ##
=============================================
- Coverage      45.12%   45.09%   -0.03%     
- Complexity     10931    10933       +2     
=============================================
  Files           1274     1274              
  Lines          88970    88970              
  Branches       11434    11434              
=============================================
- Hits           40144    40118      -26     
- Misses         43826    43848      +22     
- Partials        5000     5004       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@mxsm mxsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RongtongJin RongtongJin merged commit 0e56d87 into apache:develop Jul 23, 2024
10 checks passed
@TeFuirnever TeFuirnever deleted the tongyi_testcase_coverage branch July 23, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
soc Summer of Code, hosted by Google, Alibaba, Chinese Academy of Sciences and so on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Add test cases for org.apache.rocketmq.common.AclConfig
6 participants