Skip to content

Commit

Permalink
generate mock functions for project client (#560)
Browse files Browse the repository at this point in the history
Signed-off-by: jtcheng <[email protected]>
Co-authored-by: jtcheng <[email protected]>
  • Loading branch information
chengjingtao and jtcheng authored Mar 19, 2024
1 parent 55039d3 commit 66e0f4f
Show file tree
Hide file tree
Showing 2 changed files with 346 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/types/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import (
metav1alpha1 "github.com/katanomi/pkg/apis/meta/v1alpha1"
)

//go:generate mockgen -package=types -destination=../../testing/mock/github.com/katanomi/pkg/plugin/types/project.go github.com/katanomi/pkg/plugin/types ProjectLister,ProjectGetter,SubtypeProjectGetter,ProjectCreator,ProjectDeleter

// ProjectLister list project api
type ProjectLister interface {
Interface
Expand Down
344 changes: 344 additions & 0 deletions testing/mock/github.com/katanomi/pkg/plugin/types/project.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 66e0f4f

Please sign in to comment.