-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock.sh
11 lines (10 loc) · 1.13 KB
/
mock.sh
1
2
3
4
5
6
7
8
9
10
# Implement Mock
$GOPATH/bin/mockgen -package=mock github.com/tozastation/go-grpc-ddd-example/implements IPingImplement > implements/mock/ping_implement_mock.go
$GOPATH/bin/mockgen -package=mock github.com/tozastation/go-grpc-ddd-example/implements IWeatherImplement > implements/mock/weather_implement_mock.go
$GOPATH/bin/mockgen -package=mock github.com/tozastation/go-grpc-ddd-example/implements IUserImplement > implements/mock/user_implement_mock.go
# Service Mock
$GOPATH/bin/mockgen -package=mock github.com/tozastation/go-grpc-ddd-example/domain/service IUserService > domain/service/mock/user_service_mock.go
$GOPATH/bin/mockgen -package=mock github.com/tozastation/go-grpc-ddd-example/domain/service IWeatherService > domain/service/mock/weather_service_mock.go
# Repository Mock
$GOPATH/bin/mockgen -package=mock github.com/tozastation/go-grpc-ddd-example/domain/repository IUserRepository > infrastructure/persistence/mssql/mock/user_repository_mock.go
$GOPATH/bin/mockgen -package=mock github.com/tozastation/go-grpc-ddd-example/domain/repository IWeatherRepository > infrastructure/persistence/mssql/mock/weather_repository_mock.go