Documentation ¶
Overview ¶
Package grpctest helps testing GRPC services in Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientMock ¶
type ClientMock struct {
// contains filtered or unexported fields
}
ClientMock contains all the info needed to mock client calls.
func (*ClientMock) Conn ¶
func (mock *ClientMock) Conn() *grpc.ClientConn
Conn returns a GRPC connection that uses the mock client when connecting.
func (*ClientMock) Set ¶
func (mock *ClientMock) Set(name string, handler interface{})
Set assigns a method to a handler function that will be called in the mock. The name should be only the method name, not the service nor the package.
Click to show internal directories.
Click to hide internal directories.