Skip to content

Conversation

@abzymeinsjtu
Copy link

Purpose of the pull request

increase coverage of environment service

EricGao888
EricGao888 previously approved these changes Apr 14, 2024
EricGao888
EricGao888 previously approved these changes Apr 14, 2024
@SbloodyS SbloodyS added improvement make more easy to user or prompt friendly test 3.3.0 labels Apr 14, 2024
@SbloodyS SbloodyS added this to the 3.3.0 milestone Apr 14, 2024
@abzymeinsjtu abzymeinsjtu force-pushed the feat_inc_environment_service_coverage branch from 3bf8a3c to 5ac23cd Compare April 15, 2024 02:05
@github-actions github-actions bot removed the test label Apr 15, 2024
@abzymeinsjtu abzymeinsjtu force-pushed the feat_inc_environment_service_coverage branch from 5ac23cd to 60f1307 Compare April 15, 2024 02:10
@codecov-commenter
Copy link

codecov-commenter commented Apr 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 39.54%. Comparing base (2263455) to head (6a5530e).

❗ Current head 6a5530e differs from pull request most recent head 049a8cb. Consider uploading reports for the commit 049a8cb to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##                dev   #15840      +/-   ##
============================================
+ Coverage     39.47%   39.54%   +0.07%     
- Complexity     5006     5015       +9     
============================================
  Files          1347     1347              
  Lines         45641    45641              
  Branches       4892     4892              
============================================
+ Hits          18017    18050      +33     
+ Misses        25691    25668      -23     
+ Partials       1933     1923      -10     

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

Copy link
Member

@qingwli qingwli left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Member

@qingwli qingwli left a comment

Choose a reason for hiding this comment

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

Please fix code smell

 assertEquals(
((List<Environment>) result.get(Constants.DATA_LIST)).size(), 0);

Swap these 2 arguments so they are in the correct order: expected value, actual value.

@abzymeinsjtu abzymeinsjtu force-pushed the feat_inc_environment_service_coverage branch from 60f1307 to 4b96ee6 Compare April 15, 2024 02:52
@abzymeinsjtu
Copy link
Author

Please fix code smell

 assertEquals(
((List<Environment>) result.get(Constants.DATA_LIST)).size(), 0);

Swap these 2 arguments so they are in the correct order: expected value, actual value.

done

@abzymeinsjtu abzymeinsjtu requested a review from qingwli April 15, 2024 04:10
@sonarqubecloud
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link
Member

@qingwli qingwli left a comment

Choose a reason for hiding this comment

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

+1

@qingwli qingwli merged commit 7894ebb into apache:dev Apr 15, 2024
@abzymeinsjtu abzymeinsjtu deleted the feat_inc_environment_service_coverage branch April 15, 2024 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.3.0 backend improvement make more easy to user or prompt friendly ready-to-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants