-
Notifications
You must be signed in to change notification settings - Fork 111
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
Add negative scenarios for historical tests #9345
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
6dfd6d9
to
2e002a3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
.../src/test/java/com/hedera/mirror/web3/service/ContractCallServiceHistoricalNegativeTest.java
Outdated
Show resolved
Hide resolved
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>
2e002a3
to
3e0550d
Compare
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGMT
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
andAbstractContractCallServiceTest
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