[Umbrella] Improve test coverages
This is the currently unit test coverage:
β
api/core/v1alpha1 (64ms)
β
pkg (5ms)
β
api/inference/v1alpha1 (43ms)
β
pkg/controller (33ms)
β
pkg/cert (78ms)
β
pkg/controller/inference (28ms)
β
pkg/webhook (23ms)
β pkg/controller_helper/model_source (1.014s) (coverage: 4.8% of statements)
β pkg/controller_helper (2.011s) (coverage: 3.6% of statements)
β pkg/util (3.184s) (coverage: 5.8% of statements)
We need to improve this.
/kind cleanup
/good-first-issue
I am trying to get involved and familiar with this project, I am willing to help /assign
Thanks @googs1025
I want to try it. @kerthcet
Feel free to take it. /assign @X1aoZEOuO
Hi, I'm new here and would like to help with improving the test coverage. I can start with the pkg/controller_helper/model_source package. Is there anything I should know before I start?
I think the basic principle is that it should be table-driven testing, just like: https://github.com/InftyAI/llmaz/blob/cf3283f6350711a81942371979f03f56d533a44b/pkg/controller_helper/backendruntime/backendruntime_test.go#L33-L39