apache / incubator-hugegraph

A graph database that supports more than 100+ billion data, high performance and scalability (Include OLTP Engine & REST-API & Backends)
https://hugegraph.apache.org
Apache License 2.0
2.58k stars 512 forks source link

chore(pd): refactor and fix pd tests #2492

Closed VGalaxies closed 3 months ago

VGalaxies commented 3 months ago

subtask of https://github.com/apache/incubator-hugegraph/issues/2481


  1. remove pd-clitools module (replace with pd-cli when adapting 4.0)
  2. fix code style
  3. remove useless test classes, such as DiscoveryClientImplTest, although DiscoveryClientImpl is still retained in pd-client
  4. all core tests inherit from PDCoreTestBase to reuse the PDConfig construction

For detailed documentation, please refer to this link.

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 25.00000% with 6 lines in your changes are missing coverage. Please review.

:exclamation: No coverage uploaded for pull request base (pd-store@6d04e9b). Click here to learn what that means.

Files Patch % Lines
...va/org/apache/hugegraph/pd/client/ClientCache.java 14.28% 5 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## pd-store #2492 +/- ## =========================================== Coverage ? 56.82% Complexity ? 2156 =========================================== Files ? 717 Lines ? 58318 Branches ? 7482 =========================================== Hits ? 33140 Misses ? 21943 Partials ? 3235 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.