mocks

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientMock

func NewClientMock() task.Client

func NewProviderMock

func NewProviderMock(client task.Client) task.Provider

Types

type ClientMock

type ClientMock struct {
	mock.Mock
}

func (*ClientMock) Close

func (m *ClientMock) Close() error

func (*ClientMock) CreateTask

func (m *ClientMock) CreateTask(ctx context.Context,
	req *taskspb.CreateTaskRequest, opts ...gax.CallOption) (*taskspb.Task, error)

type ProviderMock

type ProviderMock struct {
	mock.Mock
}

func (*ProviderMock) NewClient

func (m *ProviderMock) NewClient() (task.Client, error)

Jump to

Keyboard shortcuts

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