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

Add negative scenarios for historical tests #9345

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

bilyana-gospodinova
Copy link
Contributor

@bilyana-gospodinova bilyana-gospodinova commented Sep 13, 2024

Description:
This PR adds some new test related to the historical scenarios. They verify that the correct data is fetched having a particular historical timestamp. The tests are located in ContractCallServiceHistoricalNegativeTest.

A new abstract class is added - AbstractContractCallServiceHistoricalTest. It contains some common methods related to the historical data persist.

The methods in AbstractContractCallServiceHistoricalTest and AbstractContractCallServiceTest are named with <entity_type>persist instead of persist<entity_type> in order to use the IDE's auto suggest easily. The second approach would list too much methods as they all start with "p" and this makes the search harder, so I renamed some of the old methods.

Fixes #9317

Checklist

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

@bilyana-gospodinova bilyana-gospodinova added enhancement Type: New feature test Test infrastructure, automated tests required, etc web3 Area: Web3 API labels Sep 13, 2024
@bilyana-gospodinova bilyana-gospodinova self-assigned this Sep 13, 2024
Copy link

codecov bot commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.55%. Comparing base (fe60726) to head (3e0550d).
Report is 4 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9345      +/-   ##
============================================
+ Coverage     92.52%   92.55%   +0.03%     
- Complexity     7012     7016       +4     
============================================
  Files           904      904              
  Lines         29669    29669              
  Branches       3751     3751              
============================================
+ Hits          27451    27460       +9     
+ Misses         1447     1444       -3     
+ Partials        771      765       -6     

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

@bilyana-gospodinova bilyana-gospodinova changed the title 09317 add negative scenarios for historical tests Add negative scenarios for historical tests Sep 13, 2024
@bilyana-gospodinova bilyana-gospodinova marked this pull request as ready for review September 13, 2024 14:01
@bilyana-gospodinova bilyana-gospodinova requested a review from a team September 13, 2024 14:01
@bilyana-gospodinova bilyana-gospodinova force-pushed the 09317-add-negative-scenarios-for-historical-tests branch from 6dfd6d9 to 2e002a3 Compare September 13, 2024 14:39
@steven-sheehy steven-sheehy added this to the 0.114.0 milestone Sep 13, 2024
steven-sheehy
steven-sheehy previously approved these changes Sep 13, 2024
Copy link
Member

@steven-sheehy steven-sheehy left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Bilyana Gospodinova <bilyana.gospodinova14@gmail.com>
Signed-off-by: Bilyana Gospodinova <bilyana.gospodinova14@gmail.com>
Signed-off-by: Bilyana Gospodinova <bilyana.gospodinova14@gmail.com>
Copy link

sonarcloud bot commented Sep 16, 2024

Copy link
Contributor

@nickeynikolovv nickeynikolovv left a comment

Choose a reason for hiding this comment

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

LGMT

@steven-sheehy steven-sheehy merged commit 4cc86d7 into main Sep 16, 2024
33 checks passed
@steven-sheehy steven-sheehy deleted the 09317-add-negative-scenarios-for-historical-tests branch September 16, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type: New feature test Test infrastructure, automated tests required, etc web3 Area: Web3 API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add negative scenarios for historical tests
3 participants