btcven / locha-p2p

Apache License 2.0
8 stars 1 forks source link

Add tests for IP address filtering #32

Closed jeandudey closed 4 years ago

jeandudey commented 4 years ago

Fixes a bug, makes code a little bit clearer.

Testing

cargo test

codecov[bot] commented 4 years ago

Codecov Report

Merging #32 into master will increase coverage by 3.97%. The diff coverage is 89.74%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #32      +/-   ##
==========================================
+ Coverage   12.51%   16.49%   +3.97%     
==========================================
  Files          13       13              
  Lines         679      691      +12     
==========================================
+ Hits           85      114      +29     
+ Misses        594      577      -17     
Impacted Files Coverage Δ
src/discovery.rs 35.91% <89.74%> (+14.60%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a745a28...2202af3. Read the comment docs.