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

test: Increase code coverage in CryptoDeleteAllowanceHandlerTest #16834

Merged
merged 6 commits into from
Nov 28, 2024

Conversation

petreze
Copy link
Contributor

@petreze petreze commented Nov 28, 2024

Description:
Code coverage increased from 71.25 % to 95.00 %

Related issue(s):

Fixes #16833

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
@petreze petreze added this to the v0.58 milestone Nov 28, 2024
@petreze petreze self-assigned this Nov 28, 2024
@petreze petreze requested a review from a team as a code owner November 28, 2024 13:44
@petreze petreze requested a review from kimbor November 28, 2024 13:44
@petreze petreze changed the title test: add test for calculateFees method in CryptoDeleteHandler test: add test for calculateFees method in CryptoDeleteAllowanceHandler Nov 28, 2024
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Copy link

codacy-production bot commented Nov 28, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.02% (target: -1.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (539f059) 97548 63701 65.30%
Head commit (4faaf9d) 97548 (+0) 63718 (+17) 65.32% (+0.02%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#16834) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.62%. Comparing base (539f059) to head (4faaf9d).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             develop   #16834      +/-   ##
=============================================
+ Coverage      63.60%   63.62%   +0.02%     
- Complexity     20401    20408       +7     
=============================================
  Files           2537     2537              
  Lines          94783    94783              
  Branches        9907     9907              
=============================================
+ Hits           60285    60306      +21     
+ Misses         30892    30875      -17     
+ Partials        3606     3602       -4     

see 2 files with indirect coverage changes

Impacted file tree graph

@petreze petreze changed the title test: add test for calculateFees method in CryptoDeleteAllowanceHandler test: Increase code coverage in CryptoDeleteAllowanceHandlerTest Nov 28, 2024
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
Copy link
Contributor

@thomas-swirlds-labs thomas-swirlds-labs left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @petreze 🎉

Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
@petreze petreze merged commit 2a82e0d into develop Nov 28, 2024
52 of 53 checks passed
@petreze petreze deleted the 16833-codecov-crypto-delete-allowance-handler branch November 28, 2024 19:06
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.

Increase code coverage for CryptoDeleteAllowanceHandler from [71.25 %]
2 participants