README
¶
grpctest
Package grpctest
helps testing GRPC services in Go.
Install
import (
"libs.altipla.consulting/grpctest"
)
Contributing
You can make pull requests or create issues in GitHub. Any code you send should be formatted using make gofmt
.
Running tests
Run the tests:
make test
License
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.