cloudtasks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Faker

type Faker struct {
	ClientOpt option.ClientOption
	// contains filtered or unexported fields
}

func NewFaker

func NewFaker(t *testing.T) *Faker

func NewFakerWithoutTesting added in v0.3.0

func NewFakerWithoutTesting() *Faker

func (*Faker) AddMockResponse

func (f *Faker) AddMockResponse(err error, resp ...proto.Message)

AddMockResponse is Call された回数

func (*Faker) AddMockResponseWithIndex added in v0.1.0

func (f *Faker) AddMockResponseWithIndex(callCount int, err error, resp ...proto.Message)

AddMockResponseWithIndex is CreateTask が Call した回数が一致した時に返す Mock Response を追加する

func (*Faker) AddMockResponseWithTaskName added in v0.1.0

func (f *Faker) AddMockResponseWithTaskName(taskName string, err error, resp ...proto.Message)

AddMockResponseWithTaskName is TaskName が一致した時に返す Mock Response を追加する

func (*Faker) GetCreateTaskCallCount

func (f *Faker) GetCreateTaskCallCount() int

GetCreateTaskCallCount is Returns the number of times CreateTask was called

func (*Faker) GetCreateTaskRequest

func (f *Faker) GetCreateTaskRequest(i int) (*taskspb.CreateTaskRequest, error)

GetCreateTaskRequest is Returns the request passed to CreateTask

func (*Faker) Stop added in v0.1.0

func (f *Faker) Stop()

Jump to

Keyboard shortcuts

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