openyurtio / yurt-edgex-manager

yurt-edgex-manager is an operator for managing EdgeX lifecycle(including deploy, delete, update) in OpenYurt cluster.
Apache License 2.0
18 stars 24 forks source link

Add UT for webhook #50

Closed Rui-Gan closed 2 years ago

Rui-Gan commented 2 years ago

What type of PR is this?

/kind feature

What this PR does / why we need it:

Add UT for webhook

Which issue(s) this PR fixes:

Fixes #49

codecov[bot] commented 2 years ago

Codecov Report

Merging #50 (be77b86) into main (62bbfbb) will increase coverage by 13.01%. The diff coverage is n/a.

@@            Coverage Diff             @@
##            main      #50       +/-   ##
==========================================
+ Coverage   5.39%   18.40%   +13.01%     
==========================================
  Files          1        2        +1     
  Lines        315      402       +87     
==========================================
+ Hits          17       74       +57     
- Misses       298      322       +24     
- Partials       0        6        +6     
Impacted Files Coverage Δ
pkg/webhook/edgex/edgex_webhook.go 65.51% <0.00%> (ø)

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