testutil

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMessageRequest

func CreateMessageRequest(ctx context.Context) *standup.CreateMessageRequest

func NewContext

func NewContext(parent context.Context) (context.Context, context.CancelFunc)

func OutgoingMetadata

func OutgoingMetadata(f func(md metadata.MD) bool) any

OutgoingMetadata in fact returns mock.argumentMatcher and should only be used when preparing mock.Mock for a method call.

func OwnerID

func OwnerID(ctx context.Context) string

func RequireErrCode

func RequireErrCode(t *testing.T, expected codes.Code, err error)

func TestID

func TestID(ctx context.Context) string

Types

type MockStandupClient

type MockStandupClient struct {
	mock.Mock
}

func (*MockStandupClient) CreateMessage

func (*MockStandupClient) GetMessage

func (*MockStandupClient) ListMessages

Jump to

Keyboard shortcuts

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