cloudtasks

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 11 Imported by: 0

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 (*Faker) AddMockResponse

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

AddMockResponse is Set Response when CreateTask is called

Setting err returns that err. When returning a normal Response, err specifies nil.

func (*Faker) GetCreateTaskCallCount added in v1.1.0

func (f *Faker) GetCreateTaskCallCount() int

GetCreateTaskCallCount is Returns the number of times CreateTask was called

func (*Faker) GetCreateTaskRequest added in v1.1.0

func (f *Faker) GetCreateTaskRequest(i int) ([]proto.Message, error)

GetCreateTaskRequest is Returns the request passed to CreateTask

Jump to

Keyboard shortcuts

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