add querier mock
This commit is contained in:
@@ -25,6 +25,12 @@ dockerize-nats:
|
||||
migrateup:
|
||||
go run -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latest -path app/database -database "postgresql://developer:secret@localhost:5432/$(DB_NAME)?sslmode=disable" -verbose up
|
||||
|
||||
.PHONY: mock
|
||||
#Mock database
|
||||
mock:
|
||||
go run go.uber.org/mock/mockgen@latest -package mock -destination internal/domains/sensors/mock/querier.go $(MOD_NAME)/internal/domains/sensors Repository
|
||||
|
||||
|
||||
.PHONY: run
|
||||
# Start app in development environment
|
||||
run:
|
||||
|
||||
Reference in New Issue
Block a user