Skip to content

Commit

Permalink
chore: add Interface mock (#271)
Browse files Browse the repository at this point in the history
Co-authored-by: qingliu <[email protected]>
  • Loading branch information
l-qing and l-qing authored Sep 2, 2022
1 parent 5af16c0 commit 7924b90
Show file tree
Hide file tree
Showing 3 changed files with 726 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sonar.coverage.dtdVerification=false
sonar.sourceEncoding=UTF-8

sonar.sources=.
sonar.exclusions=vendor/**,test/**,**/*_generated*go,**/generated.pb.go,**/*.md,bin/*,testbin/*
sonar.exclusions=vendor/**,test/**,**/*_generated*go,**/generated.pb.go,testing/mock/**,**/*.md,bin/*,testbin/*

sonar.tests=.
sonar.test.inclusions=**/*_test.go
Expand Down
1 change: 1 addition & 0 deletions testing/mock/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ package mock
//go:generate mockgen -package=client -destination=./sigs.k8s.io/controller-runtime/pkg/client/client.go sigs.k8s.io/controller-runtime/pkg/client Client
//go:generate mockgen -package=manager -destination=./sigs.k8s.io/controller-runtime/pkg/manager/manager.go sigs.k8s.io/controller-runtime/pkg/manager Manager
//go:generate mockgen -package=apis -destination=./knative.dev/pkg/apis/condition_manager.go knative.dev/pkg/apis ConditionManager
//go:generate mockgen -package=kubernetes -destination=./k8s.io/client-go/kubernetes/clientset.go k8s.io/client-go/kubernetes Interface
Loading

0 comments on commit 7924b90

Please sign in to comment.