Skip to content

test(feeder): add unit tests for PreConfirmedBlockByNumber with mock …

a5e3520
Select commit
Loading
Failed to load commit list.
Open

feat(sync): delta-aware pre_confirmed polling #3617

test(feeder): add unit tests for PreConfirmedBlockByNumber with mock …
a5e3520
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jun 1, 2026 in 1s

76.51% (target 70.00%)

View this Pull Request on Codecov

76.51% (target 70.00%)

Details

Codecov Report

❌ Patch coverage is 86.29442% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.51%. Comparing base (b44be8e) to head (a5e3520).

Files with missing lines Patch % Lines
adapters/sn2core/sn2core.go 78.26% 5 Missing and 5 partials ⚠️
sync/pending_polling.go 85.41% 5 Missing and 2 partials ⚠️
clients/feeder/feeder.go 71.42% 4 Missing ⚠️
starknetdata/feeder/feeder_adapter.go 76.47% 2 Missing and 2 partials ⚠️
core/pending/pending.go 93.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3617      +/-   ##
==========================================
+ Coverage   76.44%   76.51%   +0.06%     
==========================================
  Files         402      402              
  Lines       36770    36952     +182     
==========================================
+ Hits        28110    28273     +163     
- Misses       6681     6697      +16     
- Partials     1979     1982       +3     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.