kubebb / core

A declarative component lifecycle management platform
https://kubebb.github.io/website
Apache License 2.0
8 stars 9 forks source link

test: add test for helm repo func #223

Closed Abirdcfly closed 1 year ago

Abirdcfly commented 1 year ago

What type of PR is this?

/kind test

What this PR does / why we need it

  1. clean pkg/helm/testdata for Follow-up reconstruction.
  2. add test for helm repo add/update/remove function.

    Which issue(s) this PR fixes

    For #194

Special notes for your reviewer

codecov[bot] commented 1 year ago

Codecov Report

Merging #223 (e2667c8) into main (2b6df16) will increase coverage by 2.93%. The diff coverage is 40.00%.

@@            Coverage Diff             @@
##             main     #223      +/-   ##
==========================================
+ Coverage   12.80%   15.73%   +2.93%     
==========================================
  Files          30       30              
  Lines        2937     2942       +5     
==========================================
+ Hits          376      463      +87     
+ Misses       2545     2446      -99     
- Partials       16       33      +17     
Files Changed Coverage Δ
pkg/helm/repo.go 58.00% <40.00%> (+58.00%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more