Documentation ¶
Index ¶
- func CreateMessageRequest(ctx context.Context) *standup.CreateMessageRequest
- func NewContext(parent context.Context) (context.Context, context.CancelFunc)
- func OutgoingMetadata(f func(md metadata.MD) bool) any
- func OwnerID(ctx context.Context) string
- func RequireErrCode(t *testing.T, expected codes.Code, err error)
- func TestID(ctx context.Context) string
- type MockStandupClient
- func (c *MockStandupClient) CreateMessage(ctx context.Context, in *standup.CreateMessageRequest, _ ...grpc.CallOption) (*standup.CreateMessageResponse, error)
- func (c *MockStandupClient) GetMessage(ctx context.Context, in *standup.GetMessageRequest, _ ...grpc.CallOption) (*standup.GetMessageResponse, error)
- func (c *MockStandupClient) ListMessages(ctx context.Context, in *standup.ListMessagesRequest, _ ...grpc.CallOption) (*standup.ListMessagesResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMessageRequest ¶
func CreateMessageRequest(ctx context.Context) *standup.CreateMessageRequest
func NewContext ¶
func OutgoingMetadata ¶
OutgoingMetadata in fact returns mock.argumentMatcher and should only be used when preparing mock.Mock for a method call.
Types ¶
type MockStandupClient ¶
func (*MockStandupClient) CreateMessage ¶
func (c *MockStandupClient) CreateMessage(ctx context.Context, in *standup.CreateMessageRequest, _ ...grpc.CallOption) (*standup.CreateMessageResponse, error)
func (*MockStandupClient) GetMessage ¶
func (c *MockStandupClient) GetMessage(ctx context.Context, in *standup.GetMessageRequest, _ ...grpc.CallOption) (*standup.GetMessageResponse, error)
func (*MockStandupClient) ListMessages ¶
func (c *MockStandupClient) ListMessages(ctx context.Context, in *standup.ListMessagesRequest, _ ...grpc.CallOption) (*standup.ListMessagesResponse, error)
Click to show internal directories.
Click to hide internal directories.