Skip to content

Migrate parts of metrics module to junit5#4104

Merged
hezhangjian merged 1 commit intoapache:masterfrom
pengxiangrui127:metrics_migrate_to_junit5
Dec 8, 2023
Merged

Migrate parts of metrics module to junit5#4104
hezhangjian merged 1 commit intoapache:masterfrom
pengxiangrui127:metrics_migrate_to_junit5

Conversation

@pengxiangrui127
Copy link
Copy Markdown
Contributor

@pengxiangrui127 pengxiangrui127 commented Dec 7, 2023

TestDefaultLogPublisher and TestThreadPoolMetersInitializer need further analysis.

Assertions.assertEquals(0, eth0.getSend().getRate(), 0.0);
Assertions.assertEquals(8, eth0.getSend().getIndex());
Map<String, InterfaceUsage> interfaceInfoMap = netMeter.getInterfaceUsageMap();
Assertions.assertEquals(1, interfaceInfoMap.size());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

plz don't change this intent

@pengxiangrui127 pengxiangrui127 force-pushed the metrics_migrate_to_junit5 branch from bb75eaa to 2d8b983 Compare December 7, 2023 15:26
list.add("useless");
list.add("useless");
list.add("eth0: 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0");
OsMeter osMeter = new OsMeter(meterRegistry);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

wrong intent.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Dec 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (176dc2f) 44.25% compared to head (5f0fea2) 44.25%.
Report is 2 commits behind head on master.

❗ Current head 5f0fea2 differs from pull request most recent head 3764dc5. Consider uploading reports for the commit 3764dc5 to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #4104   +/-   ##
=========================================
  Coverage     44.25%   44.25%           
- Complexity     5366     5367    +1     
=========================================
  Files          1382     1382           
  Lines         34255    34255           
  Branches       3314     3314           
=========================================
+ Hits          15158    15160    +2     
+ Misses        17869    17868    -1     
+ Partials       1228     1227    -1     

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

@pengxiangrui127 pengxiangrui127 force-pushed the metrics_migrate_to_junit5 branch from 2d8b983 to 3764dc5 Compare December 8, 2023 00:43
@hezhangjian hezhangjian changed the title Migrate metrics module to junit5 Migrate parts of metrics module to junit5 Dec 8, 2023
@hezhangjian hezhangjian merged commit ede3d2b into apache:master Dec 8, 2023
@pengxiangrui127 pengxiangrui127 deleted the metrics_migrate_to_junit5 branch December 8, 2023 13:07
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.

3 participants