mocks

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminClient added in v0.9.1

type AdminClient struct {
	mock.Mock
}

AdminClient is an autogenerated mock type for the AdminClient type

func NewAdminClient added in v0.9.1

func NewAdminClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *AdminClient

NewAdminClient creates a new instance of AdminClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AdminClient) EXPECT added in v0.9.1

func (_m *AdminClient) EXPECT() *AdminClient_Expecter

func (*AdminClient) TableInfo added in v0.9.1

func (_m *AdminClient) TableInfo(ctx context.Context, table string) (*bigtable.TableInfo, error)

TableInfo provides a mock function with given fields: ctx, table

func (*AdminClient) Tables added in v0.9.1

func (_m *AdminClient) Tables(ctx context.Context) ([]string, error)

Tables provides a mock function with given fields: ctx

type AdminClient_Expecter added in v0.9.1

type AdminClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*AdminClient_Expecter) TableInfo added in v0.9.1

func (_e *AdminClient_Expecter) TableInfo(ctx interface{}, table interface{}) *AdminClient_TableInfo_Call

TableInfo is a helper method to define mock.On call

  • ctx context.Context
  • table string

func (*AdminClient_Expecter) Tables added in v0.9.1

func (_e *AdminClient_Expecter) Tables(ctx interface{}) *AdminClient_Tables_Call

Tables is a helper method to define mock.On call

  • ctx context.Context

type AdminClient_TableInfo_Call added in v0.9.1

type AdminClient_TableInfo_Call struct {
	*mock.Call
}

AdminClient_TableInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TableInfo'

func (*AdminClient_TableInfo_Call) Return added in v0.9.1

func (*AdminClient_TableInfo_Call) Run added in v0.9.1

func (*AdminClient_TableInfo_Call) RunAndReturn added in v0.9.1

type AdminClient_Tables_Call added in v0.9.1

type AdminClient_Tables_Call struct {
	*mock.Call
}

AdminClient_Tables_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tables'

func (*AdminClient_Tables_Call) Return added in v0.9.1

func (*AdminClient_Tables_Call) Run added in v0.9.1

func (*AdminClient_Tables_Call) RunAndReturn added in v0.9.1

func (_c *AdminClient_Tables_Call) RunAndReturn(run func(context.Context) ([]string, error)) *AdminClient_Tables_Call

type InstanceAdminClient added in v0.9.1

type InstanceAdminClient struct {
	mock.Mock
}

InstanceAdminClient is an autogenerated mock type for the InstanceAdminClient type

func NewInstanceAdminClient added in v0.9.1

func NewInstanceAdminClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *InstanceAdminClient

NewInstanceAdminClient creates a new instance of InstanceAdminClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*InstanceAdminClient) EXPECT added in v0.9.1

func (*InstanceAdminClient) Instances added in v0.9.1

func (_m *InstanceAdminClient) Instances(ctx context.Context) ([]*bigtable.InstanceInfo, error)

Instances provides a mock function with given fields: ctx

type InstanceAdminClient_Expecter added in v0.9.1

type InstanceAdminClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*InstanceAdminClient_Expecter) Instances added in v0.9.1

func (_e *InstanceAdminClient_Expecter) Instances(ctx interface{}) *InstanceAdminClient_Instances_Call

Instances is a helper method to define mock.On call

  • ctx context.Context

type InstanceAdminClient_Instances_Call added in v0.9.1

type InstanceAdminClient_Instances_Call struct {
	*mock.Call
}

InstanceAdminClient_Instances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Instances'

func (*InstanceAdminClient_Instances_Call) Return added in v0.9.1

func (*InstanceAdminClient_Instances_Call) Run added in v0.9.1

func (*InstanceAdminClient_Instances_Call) RunAndReturn added in v0.9.1

type InstancesFetcher

type InstancesFetcher struct {
	mock.Mock
}

InstancesFetcher is an autogenerated mock type for the InstancesFetcher type

func (*InstancesFetcher) Instances

func (_m *InstancesFetcher) Instances(_a0 context.Context) ([]*bigtable.InstanceInfo, error)

Instances provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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