Skip to content

Commit

Permalink
chore: update mock dependency to uber mock from gomock (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpj2292 authored Jul 22, 2024
1 parent af89d60 commit 04bc329
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
GO=go
LDFLAGS?=-s -w
TESTFILE=_testok
MOUNT_PATH=/local

# go tools versions
GOLANGCI=github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.1
gofumpt=mvdan.cc/gofumpt@latest
goimports=golang.org/x/tools/cmd/goimports@latest
mockgen=go.uber.org/mock/mockgen@v0.4.0
gotestsum=gotest.tools/gotestsum@v1.11.0
actionlint=github.com/rhysd/actionlint/cmd/actionlint@latest

mocks: install-tools ## Generate all mocks
$(GO) generate ./...

install:
sh install-hooks.sh
default: build
Expand Down
2 changes: 2 additions & 0 deletions bingads/base.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package bingads

//go:generate mockgen -destination=../mocks/bingads.go -package=mock_bulkservice github.com/rudderlabs/bing-ads-go-sdk/bingads BulkServiceI

import (
"encoding/xml"
"net/http"
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ go 1.20

require golang.org/x/oauth2 v0.7.0

require go.uber.org/mock v0.4.0

require (
github.com/golang/protobuf v1.5.2 // indirect
github.com/joho/godotenv v1.5.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
go.uber.org/mock v0.4.0 h1:VcM4ZOtdbR4f6VXfiOpwpVJDL6lCReaZ6mw31wqh7KU=
go.uber.org/mock v0.4.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs=
Expand Down
85 changes: 85 additions & 0 deletions mocks/bingads.go

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

0 comments on commit 04bc329

Please sign in to comment.