nervosnetwork / ckb-light-client

CKB light client reference implementation
MIT License
14 stars 16 forks source link

test: add tests for block filter protocol #51

Closed TheWaWaR closed 2 years ago

codecov-commenter commented 2 years ago

Codecov Report

Merging #51 (16cfb27) into develop (2719071) will increase coverage by 6.26%. The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop      #51      +/-   ##
===========================================
+ Coverage    26.84%   33.10%   +6.26%     
===========================================
  Files           22       22              
  Lines         3338     3338              
  Branches       462      462              
===========================================
+ Hits           896     1105     +209     
+ Misses        2353     2120     -233     
- Partials        89      113      +24     
Flag Coverage Δ
unittests 33.10% <100.00%> (+6.26%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/protocols/filter/block_filter.rs 71.42% <ø> (+54.94%) :arrow_up:
src/protocols/mod.rs 0.00% <ø> (ø)
...otocols/filter/components/block_filters_process.rs 74.24% <100.00%> (+74.24%) :arrow_up:
src/storage.rs 85.68% <0.00%> (+3.34%) :arrow_up:
src/protocols/light_client/peers.rs 42.45% <0.00%> (+41.34%) :arrow_up:
src/protocols/status.rs 70.73% <0.00%> (+53.65%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.