Skip to content

Commit

Permalink
Use go run for mockgen
Browse files Browse the repository at this point in the history
  • Loading branch information
triarius committed Apr 17, 2023
1 parent c4df24f commit cb8cea2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/scheduler/limiter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

//go:generate mockgen -destination=mock_handler_test.go -source=../monitor/monitor.go -package scheduler_test
//go:generate go run github.com/golang/mock/mockgen -destination=mock_handler_test.go -source=../monitor/monitor.go -package scheduler_test

func TestLimiter(t *testing.T) {
t.Parallel()
Expand Down
2 changes: 0 additions & 2 deletions internal/scheduler/scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import (
corev1 "k8s.io/api/core/v1"
)

//go:generate mockgen -destination=mock_handler_test.go -source=scheduler.go -package scheduler_test

func TestJobPluginConversion(t *testing.T) {
t.Parallel()
pluginConfig := scheduler.KubernetesPlugin{
Expand Down
1 change: 1 addition & 0 deletions tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ package main

import (
_ "github.com/Khan/genqlient"
_ "github.com/golang/mock/mockgen"
_ "gotest.tools/gotestsum"
)

0 comments on commit cb8cea2

Please sign in to comment.