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 #8852] Add more test coverage for ClientMetadata #8853

Merged
merged 5 commits into from
Oct 28, 2024

Conversation

yx9o
Copy link
Contributor

@yx9o yx9o commented Oct 22, 2024

Fixes #8852 .

@codecov-commenter
Copy link

codecov-commenter commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.42%. Comparing base (95b88ff) to head (4bb97dc).

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #8853      +/-   ##
=============================================
+ Coverage      47.40%   47.42%   +0.02%     
- Complexity     11654    11659       +5     
=============================================
  Files           1294     1294              
  Lines          90424    90424              
  Branches       11627    11627              
=============================================
+ Hits           42863    42885      +22     
+ Misses         42288    42248      -40     
- Partials        5273     5291      +18     

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

public void testGetBrokerNameFromMessageQueue() {
MessageQueue mq = new MessageQueue(defaultTopic, defaultBroker, 0);
topicEndPointsTable.put(defaultTopic, new ConcurrentHashMap<>());
topicEndPointsTable.get(defaultTopic).put(mq, defaultBroker);
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be better not to use defaultBroker, so it can be distinguished from testGetBrokerNameFrommessageQueueNotFound test method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @RongtongJin , changes are complete, please review, thank you.

@RongtongJin RongtongJin merged commit ecb45bb into apache:develop Oct 28, 2024
11 checks passed
@yx9o yx9o deleted the dev-8852 branch October 28, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Add more test coverage for ClientMetadata
3 participants