Example code on how to mock gRPC services
This commit is contained in:
2
examples/helloworld/mock/generate_mock.sh
Executable file
2
examples/helloworld/mock/generate_mock.sh
Executable file
@ -0,0 +1,2 @@
|
||||
mockgen google.golang.org/grpc/examples/helloworld/helloworld GreeterClient > mock_helloworld/hw_mock.go
|
||||
gofmt -w mock_helloworld/hw_mock.go
|
||||
Reference in New Issue
Block a user