boratanrikulu / durdur

Lightweight packet filtering for Linux: 'durdur' is a high-performance, eBPF-based simple firewall tool that drops packets by IP or DNS domain. Perfect for on-demand network control.
GNU General Public License v3.0
81 stars 1 forks source link

add tests #2

Closed boratanrikulu closed 1 year ago

codecov[bot] commented 1 year ago

Codecov Report

Merging #2 (df1c57b) into main (7f1dc2f) will increase coverage by 13.04%. The diff coverage is 53.65%.

@@             Coverage Diff             @@
##             main       #2       +/-   ##
===========================================
+ Coverage   47.93%   60.97%   +13.04%     
===========================================
  Files           8       10        +2     
  Lines         242      246        +4     
===========================================
+ Hits          116      150       +34     
+ Misses        109       72       -37     
- Partials       17       24        +7     
Impacted Files Coverage Δ
internal/ebpf/map.go 26.66% <25.00%> (-38.34%) :arrow_down:
internal/ebpf/undrop.go 31.81% <29.41%> (+31.81%) :arrow_up:
internal/ebpf/drop.go 45.45% <47.05%> (+45.45%) :arrow_up:
internal/ebpf/detach.go 52.63% <50.00%> (+26.70%) :arrow_up:
internal/ebpf/new.go 62.50% <62.50%> (ø)
internal/ebpf/wrap.go 62.50% <62.50%> (ø)
internal/ebpf/attach.go 70.00% <100.00%> (+24.28%) :arrow_up:
internal/ebpf/helpers.go 100.00% <100.00%> (+39.13%) :arrow_up:
internal/ebpf/testing.go 90.90% <100.00%> (+19.26%) :arrow_up:
... and 4 more

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