Documentation ¶
Index ¶
Constants ¶
View Source
const ( TestService = "grpc.testing.TestService" NotFoundService = "not.found.NoService" EmptyCall = "EmptyCall" UnaryCall = "UnaryCall" NotFoundCall = "NotFoundCall" File = "grpc_testing/test.proto" )
Variables ¶
View Source
var (
TestError = errors.Errorf("an error")
)
Functions ¶
func NewFileDescriptor ¶
func NewFileDescriptor(t *testing.T, file string) *desc.FileDescriptor
NewFileDescriptor is a test helper that parses a .proto file into a file descriptor
Types ¶
type FakeGrpcdynamicStub ¶
type FakeGrpcdynamicStub struct { }
func (*FakeGrpcdynamicStub) InvokeRpc ¶
func (m *FakeGrpcdynamicStub) InvokeRpc(ctx context.Context, method *desc.MethodDescriptor, request proto.Message, opts ...grpc.CallOption) (proto.Message, error)
type FakeGrpcreflectClient ¶
type FakeGrpcreflectClient struct {
*desc.ServiceDescriptor
}
func (*FakeGrpcreflectClient) ResolveService ¶
func (m *FakeGrpcreflectClient) ResolveService(serviceName string) (*desc.ServiceDescriptor, error)
Click to show internal directories.
Click to hide internal directories.