mirror of
https://github.com/kubernetes/sample-controller.git
synced 2026-05-01 00:00:03 +08:00
Merge pull request #53944 from gregory-m/sample-controller-tests
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Sample controller tests **What this PR does / why we need it**: This PR adds unit tests to sample-controller. **Special notes for your reviewer**: This is currently based on the munnerz:sample-controller branch. Please don't merged it until #52753 is merged. Kubernetes-commit: dc20badcd49e5fd2ab41d4320c9c70a50d30343c
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ func (e Equalities) AddFunc(eqFunc interface{}) error {
|
||||
return fmt.Errorf("expected func, got: %v", ft)
|
||||
}
|
||||
if ft.NumIn() != 2 {
|
||||
return fmt.Errorf("expected three 'in' params, got: %v", ft)
|
||||
return fmt.Errorf("expected two 'in' params, got: %v", ft)
|
||||
}
|
||||
if ft.NumOut() != 1 {
|
||||
return fmt.Errorf("expected one 'out' param, got: %v", ft)
|
||||
|
||||
Reference in New Issue
Block a user