Documentation
¶
Index ¶
- type Faker
- func (f *Faker) AddMockResponse(err error, resp ...proto.Message)
- func (f *Faker) AddMockResponseWithIndex(callCount int, err error, resp ...proto.Message)
- func (f *Faker) AddMockResponseWithTaskName(taskName string, err error, resp ...proto.Message)
- func (f *Faker) GetCreateTaskCallCount() int
- func (f *Faker) GetCreateTaskRequest(i int) (*taskspb.CreateTaskRequest, error)
- func (f *Faker) Stop()
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 NewFakerWithoutTesting ¶ added in v0.3.0
func NewFakerWithoutTesting() *Faker
func (*Faker) AddMockResponse ¶
AddMockResponse is Call された回数
func (*Faker) AddMockResponseWithIndex ¶ added in v0.1.0
AddMockResponseWithIndex is CreateTask が Call した回数が一致した時に返す Mock Response を追加する
func (*Faker) AddMockResponseWithTaskName ¶ added in v0.1.0
AddMockResponseWithTaskName is TaskName が一致した時に返す Mock Response を追加する
func (*Faker) GetCreateTaskCallCount ¶
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
Click to show internal directories.
Click to hide internal directories.