iotex-core icon indicating copy to clipboard operation
iotex-core copied to clipboard

test(contractstaking): add unit tests

Open saitofun opened this issue 1 year ago • 2 comments

Description

Fixes #4123

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • [x] make test

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings
  • [x] I have added tests that prove my fix is effective or that my feature works
  • [x] New and existing unit tests pass locally with my changes
  • [x] Any dependent changes have been merged and published in downstream modules

saitofun avatar Feb 01 '24 13:02 saitofun

Codecov Report

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

Project coverage is 76.39%. Comparing base (e1f0636) to head (715f0b2). Report is 177 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4126      +/-   ##
==========================================
+ Coverage   75.38%   76.39%   +1.01%     
==========================================
  Files         303      339      +36     
  Lines       25923    28868    +2945     
==========================================
+ Hits        19541    22053    +2512     
- Misses       5360     5716     +356     
- Partials     1022     1099      +77     

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

codecov[bot] avatar Feb 01 '24 13:02 codecov[bot]

Quality Gate Passed Quality Gate passed

Issues
3 New issues

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

See analysis details on SonarCloud

sonarqubecloud[bot] avatar Feb 28 '24 05:02 sonarqubecloud[bot]