apache / incubator-seata

:fire: Seata is an easy-to-use, high-performance, open source distributed transaction solution.
https://seata.apache.org/
Apache License 2.0
25.25k stars 8.77k forks source link

test: Improve the test case coverage of [metrics] module to 70% #6752

Closed lightClouds917 closed 1 month ago

lightClouds917 commented 1 month ago

Ⅰ. Describe what this PR did

Improve the test case coverage of [metrics] module to 70%

Ⅱ. Does this pull request fix one issue?

fixes #6751

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 52.34%. Comparing base (525d1b9) to head (d479cd1). Report is 3 commits behind head on 2.x.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/apache/incubator-seata/pull/6752/graphs/tree.svg?width=650&height=150&src=pr&token=tbmHt2ZfxO&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)](https://app.codecov.io/gh/apache/incubator-seata/pull/6752?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) ```diff @@ Coverage Diff @@ ## 2.x #6752 +/- ## ============================================ + Coverage 52.19% 52.34% +0.14% - Complexity 6310 6375 +65 ============================================ Files 1067 1078 +11 Lines 37278 37458 +180 Branches 4427 4435 +8 ============================================ + Hits 19456 19606 +150 - Misses 15889 15914 +25 - Partials 1933 1938 +5 ``` [see 14 files with indirect coverage changes](https://app.codecov.io/gh/apache/incubator-seata/pull/6752/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)