Unit Test Packages:
*go install github.com/golang/mock/[email protected]
*go get go.mongodb.org/mongo-driver/x/mongo/driver/[email protected]
*go get golang.org/x/sync/errgroup
*go get github.com/golang/mock/mockgen/model
*go install github.com/golang/mock/[email protected]
*go get github.com/stretchr/testify/assert
Mockgen generate commant:
mockgen --destination=./mocks/product/services/mockBaseService.go github.com/mehmetcekirdekci/GolangCRUD/app/product/services BaseService