Skip to content

Commit

Permalink
updated mockgen refs
Browse files Browse the repository at this point in the history
  • Loading branch information
oliveromahony committed Nov 23, 2023
1 parent 1156071 commit d969c89
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
_ "github.com/go-swagger/go-swagger/cmd/swagger"
_ "github.com/gogo/protobuf/protoc-gen-gogo"
_ "github.com/gogo/protobuf/protoc-gen-gogofast"
_ "go.uber.org/mock/mockgen"
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
_ "github.com/goreleaser/nfpm/v2/cmd/nfpm"
_ "github.com/maxbrunsfeld/counterfeiter/v6"
_ "github.com/mwitkow/go-proto-validators/protoc-gen-govalidators"
_ "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc"
_ "go.uber.org/mock/mockgen"
_ "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
_ "mvdan.cc/gofumpt"
)
2 changes: 1 addition & 1 deletion src/extensions/advanced-metrics/aggregator/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
log "github.com/sirupsen/logrus"
)

//go:generate go run go.uber.org/mock/mockgen -source aggregator.go -destination mocks/aggregator_mock.go -package mocks -copyright_file=../../../../COPYRIGHT
//go:generate go run go.uber.org/mock/mockgen -exec_only "./" -source aggregator.go -destination mocks/aggregator_mock.go -package mocks -copyright_file=../../../../COPYRIGHT

type ReadTable interface {
ReadSnapshot(resetLookups bool) (tables.SamplesView, tables.LookupSet)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"testing"
"time"

"go.uber.org/mock/gomock"
"github.com/nginx/agent/v2/src/extensions/advanced-metrics/aggregator"
"github.com/nginx/agent/v2/src/extensions/advanced-metrics/aggregator/mocks"
"github.com/nginx/agent/v2/src/extensions/advanced-metrics/tables"
Expand All @@ -23,6 +22,7 @@ import (
"github.com/nginx/agent/v2/src/extensions/advanced-metrics/tables/sample"
"github.com/nginx/agent/v2/src/extensions/advanced-metrics/tables/schema"
"github.com/stretchr/testify/assert"
"go.uber.org/mock/gomock"
)

func TestAggregatorPublish(t *testing.T) {
Expand Down

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

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

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

0 comments on commit d969c89

Please sign in to comment.