faker

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 7 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 {
	// contains filtered or unexported fields
}

Faker is UnitTestのために Fake 実装

func NewFaker

func NewFaker(t *testing.T) *Faker

NewFaker is Faker を返す

func (*Faker) ClientOption

func (f *Faker) ClientOption() option.ClientOption

ClientOption is cloudtasks.Client に 設定する ClientOption

func (*Faker) GetCreateTaskCallCount

func (s *Faker) GetCreateTaskCallCount() int

GetCreateTaskCallCount is CreateTask が実行された回数を返す

func (*Faker) GetTask

func (s *Faker) GetTask(i int) (*tasksbox.Task, error)

GetTask is 作成された Task を取得する

func (*Faker) Stop added in v1.4.0

func (f *Faker) Stop()

Stop is Stop

Jump to

Keyboard shortcuts

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