antrea icon indicating copy to clipboard operation
antrea copied to clipboard

Improve the unit test coverage for portcache

Open jainpulkit22 opened this issue 2 years ago • 1 comments

Added unit test for pkg/agent/nodeportlocal/portcahce package.

For #4142

Signed-off-by: Pulkit Jain [email protected]

jainpulkit22 avatar Oct 12 '22 13:10 jainpulkit22

Codecov Report

Merging #4284 (2686845) into main (d9b2e37) will increase coverage by 0.84%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4284      +/-   ##
==========================================
+ Coverage   64.52%   65.36%   +0.84%     
==========================================
  Files         402      402              
  Lines       57238    57238              
==========================================
+ Hits        36932    37416     +484     
+ Misses      17594    17117     -477     
+ Partials     2712     2705       -7     
Flag Coverage Δ
integration-tests 34.66% <ø> (-0.06%) :arrow_down:
kind-e2e-tests 46.32% <ø> (+5.00%) :arrow_up:
unit-tests 51.04% <ø> (+0.13%) :arrow_up:
Impacted Files Coverage Δ
...g/agent/apiserver/handlers/featuregates/handler.go 4.54% <0.00%> (-77.28%) :arrow_down:
pkg/support/dump_others.go 0.00% <0.00%> (-44.74%) :arrow_down:
...g/agent/apiserver/handlers/addressgroup/handler.go 5.00% <0.00%> (-35.00%) :arrow_down:
pkg/agent/apiserver/handlers/agentinfo/handler.go 40.00% <0.00%> (-31.12%) :arrow_down:
...agent/controller/traceflow/traceflow_controller.go 53.57% <0.00%> (-19.39%) :arrow_down:
pkg/ipfix/ipfix_process.go 81.25% <0.00%> (-18.75%) :arrow_down:
pkg/agent/controller/networkpolicy/reject.go 60.59% <0.00%> (-12.32%) :arrow_down:
pkg/agent/util/iptables/iptables.go 39.37% <0.00%> (-10.89%) :arrow_down:
pkg/agent/apiserver/handlers/multicast/handler.go 69.76% <0.00%> (-9.31%) :arrow_down:
pkg/agent/apiserver/apiserver.go 71.27% <0.00%> (-5.32%) :arrow_down:
... and 60 more

codecov[bot] avatar Oct 12 '22 13:10 codecov[bot]

/skip-all

tnqn avatar Dec 08 '22 15:12 tnqn