mock

package
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerStream added in v1.3.4

type ServerStream struct {
	mock.Mock
}

ServerStream defines a mock GRPC server stream implementation for use in stream tests

func (*ServerStream) Context added in v1.3.4

func (mss *ServerStream) Context() context.Context

Context mocks the ServerStream Context function

func (*ServerStream) RecvMsg added in v1.3.4

func (mss *ServerStream) RecvMsg(m interface{}) error

RecvMsg mocks the ServerStream RecvMsg function

func (*ServerStream) SendHeader added in v1.3.4

func (mss *ServerStream) SendHeader(md metadata.MD) error

SendHeader mocks the ServerStream SendHeader function

func (*ServerStream) SendMsg added in v1.3.4

func (mss *ServerStream) SendMsg(m interface{}) error

SendMsg mocks the ServerStream SendMsg function

func (*ServerStream) SetHeader added in v1.3.4

func (mss *ServerStream) SetHeader(md metadata.MD) error

SetHeader mocks the ServerStream SetHeader function

func (*ServerStream) SetTrailer added in v1.3.4

func (mss *ServerStream) SetTrailer(md metadata.MD)

SetTrailer mocks the ServerStream SetTrailer function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL