mocks

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaraMLClient

type CaraMLClient struct {
	mock.Mock
}

CaraMLClient is an autogenerated mock type for the Client type

func NewCaraMLClient

func NewCaraMLClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *CaraMLClient

NewCaraMLClient creates a new instance of CaraMLClient. 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 (*CaraMLClient) Close

func (_m *CaraMLClient) Close() error

Close provides a mock function with given fields:

func (*CaraMLClient) Connect

func (_m *CaraMLClient) Connect(ctx context.Context, host string, maxSizeInMB int, timeout time.Duration) error

Connect provides a mock function with given fields: ctx, host, maxSizeInMB, timeout

func (*CaraMLClient) EXPECT

func (_m *CaraMLClient) EXPECT() *CaraMLClient_Expecter

func (*CaraMLClient) Entities

func (_m *CaraMLClient) Entities(ctx context.Context, project string) (map[string]*core.Entity, error)

Entities provides a mock function with given fields: ctx, project

func (*CaraMLClient) FeatureTables

func (_m *CaraMLClient) FeatureTables(ctx context.Context, project string) ([]*core.FeatureTable, error)

FeatureTables provides a mock function with given fields: ctx, project

func (*CaraMLClient) Projects

func (_m *CaraMLClient) Projects(ctx context.Context) ([]string, error)

Projects provides a mock function with given fields: ctx

type CaraMLClient_Close_Call

type CaraMLClient_Close_Call struct {
	*mock.Call
}

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

func (*CaraMLClient_Close_Call) Return

func (*CaraMLClient_Close_Call) Run

func (_c *CaraMLClient_Close_Call) Run(run func()) *CaraMLClient_Close_Call

func (*CaraMLClient_Close_Call) RunAndReturn added in v0.8.9

func (_c *CaraMLClient_Close_Call) RunAndReturn(run func() error) *CaraMLClient_Close_Call

type CaraMLClient_Connect_Call

type CaraMLClient_Connect_Call struct {
	*mock.Call
}

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

func (*CaraMLClient_Connect_Call) Return

func (*CaraMLClient_Connect_Call) Run

func (_c *CaraMLClient_Connect_Call) Run(run func(ctx context.Context, host string, maxSizeInMB int, timeout time.Duration)) *CaraMLClient_Connect_Call

func (*CaraMLClient_Connect_Call) RunAndReturn added in v0.8.9

type CaraMLClient_Entities_Call

type CaraMLClient_Entities_Call struct {
	*mock.Call
}

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

func (*CaraMLClient_Entities_Call) Return

func (*CaraMLClient_Entities_Call) Run

func (*CaraMLClient_Entities_Call) RunAndReturn added in v0.8.9

type CaraMLClient_Expecter

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

func (*CaraMLClient_Expecter) Close

Close is a helper method to define mock.On call

func (*CaraMLClient_Expecter) Connect

func (_e *CaraMLClient_Expecter) Connect(ctx interface{}, host interface{}, maxSizeInMB interface{}, timeout interface{}) *CaraMLClient_Connect_Call

Connect is a helper method to define mock.On call

  • ctx context.Context
  • host string
  • maxSizeInMB int
  • timeout time.Duration

func (*CaraMLClient_Expecter) Entities

func (_e *CaraMLClient_Expecter) Entities(ctx interface{}, project interface{}) *CaraMLClient_Entities_Call

Entities is a helper method to define mock.On call

  • ctx context.Context
  • project string

func (*CaraMLClient_Expecter) FeatureTables

func (_e *CaraMLClient_Expecter) FeatureTables(ctx interface{}, project interface{}) *CaraMLClient_FeatureTables_Call

FeatureTables is a helper method to define mock.On call

  • ctx context.Context
  • project string

func (*CaraMLClient_Expecter) Projects

func (_e *CaraMLClient_Expecter) Projects(ctx interface{}) *CaraMLClient_Projects_Call

Projects is a helper method to define mock.On call

  • ctx context.Context

type CaraMLClient_FeatureTables_Call

type CaraMLClient_FeatureTables_Call struct {
	*mock.Call
}

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

func (*CaraMLClient_FeatureTables_Call) Return

func (*CaraMLClient_FeatureTables_Call) Run

func (*CaraMLClient_FeatureTables_Call) RunAndReturn added in v0.8.9

type CaraMLClient_Projects_Call

type CaraMLClient_Projects_Call struct {
	*mock.Call
}

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

func (*CaraMLClient_Projects_Call) Return

func (*CaraMLClient_Projects_Call) Run

func (*CaraMLClient_Projects_Call) RunAndReturn added in v0.8.9

type CoreServer

type CoreServer struct {
	mock.Mock
}

CoreServer is an autogenerated mock type for the CoreServiceServer type

func NewCoreServer

func NewCoreServer(t mockConstructorTestingTNewCoreServer) *CoreServer

NewCoreServer creates a new instance of CoreServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*CoreServer) ApplyEntity

ApplyEntity provides a mock function with given fields: _a0, _a1

func (*CoreServer) ApplyFeatureTable

ApplyFeatureTable provides a mock function with given fields: _a0, _a1

func (*CoreServer) ArchiveOnlineStore

ArchiveOnlineStore provides a mock function with given fields: _a0, _a1

func (*CoreServer) ArchiveProject

ArchiveProject provides a mock function with given fields: _a0, _a1

func (*CoreServer) CreateProject

CreateProject provides a mock function with given fields: _a0, _a1

func (*CoreServer) DeleteFeatureTable

DeleteFeatureTable provides a mock function with given fields: _a0, _a1

func (*CoreServer) EXPECT

func (_m *CoreServer) EXPECT() *CoreServer_Expecter

func (*CoreServer) GetEntity

GetEntity provides a mock function with given fields: _a0, _a1

func (*CoreServer) GetFeastCoreVersion

GetFeastCoreVersion provides a mock function with given fields: _a0, _a1

func (*CoreServer) GetFeatureTable

GetFeatureTable provides a mock function with given fields: _a0, _a1

func (*CoreServer) GetOnlineStore

GetOnlineStore provides a mock function with given fields: _a0, _a1

func (*CoreServer) ListEntities

ListEntities provides a mock function with given fields: _a0, _a1

func (*CoreServer) ListFeatureTables

ListFeatureTables provides a mock function with given fields: _a0, _a1

func (*CoreServer) ListFeatures

ListFeatures provides a mock function with given fields: _a0, _a1

func (*CoreServer) ListOnlineStores

ListOnlineStores provides a mock function with given fields: _a0, _a1

func (*CoreServer) ListProjects

ListProjects provides a mock function with given fields: _a0, _a1

func (*CoreServer) RegisterOnlineStore

RegisterOnlineStore provides a mock function with given fields: _a0, _a1

type CoreServer_ApplyEntity_Call

type CoreServer_ApplyEntity_Call struct {
	*mock.Call
}

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

func (*CoreServer_ApplyEntity_Call) Return

func (*CoreServer_ApplyEntity_Call) Run

type CoreServer_ApplyFeatureTable_Call

type CoreServer_ApplyFeatureTable_Call struct {
	*mock.Call
}

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

func (*CoreServer_ApplyFeatureTable_Call) Return

func (*CoreServer_ApplyFeatureTable_Call) Run

type CoreServer_ArchiveOnlineStore_Call

type CoreServer_ArchiveOnlineStore_Call struct {
	*mock.Call
}

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

func (*CoreServer_ArchiveOnlineStore_Call) Return

func (*CoreServer_ArchiveOnlineStore_Call) Run

type CoreServer_ArchiveProject_Call

type CoreServer_ArchiveProject_Call struct {
	*mock.Call
}

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

func (*CoreServer_ArchiveProject_Call) Return

func (*CoreServer_ArchiveProject_Call) Run

type CoreServer_CreateProject_Call

type CoreServer_CreateProject_Call struct {
	*mock.Call
}

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

func (*CoreServer_CreateProject_Call) Return

func (*CoreServer_CreateProject_Call) Run

type CoreServer_DeleteFeatureTable_Call

type CoreServer_DeleteFeatureTable_Call struct {
	*mock.Call
}

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

func (*CoreServer_DeleteFeatureTable_Call) Return

func (*CoreServer_DeleteFeatureTable_Call) Run

type CoreServer_Expecter

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

func (*CoreServer_Expecter) ApplyEntity

func (_e *CoreServer_Expecter) ApplyEntity(_a0 interface{}, _a1 interface{}) *CoreServer_ApplyEntity_Call

ApplyEntity is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.ApplyEntityRequest

func (*CoreServer_Expecter) ApplyFeatureTable

func (_e *CoreServer_Expecter) ApplyFeatureTable(_a0 interface{}, _a1 interface{}) *CoreServer_ApplyFeatureTable_Call

ApplyFeatureTable is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.ApplyFeatureTableRequest

func (*CoreServer_Expecter) ArchiveOnlineStore

func (_e *CoreServer_Expecter) ArchiveOnlineStore(_a0 interface{}, _a1 interface{}) *CoreServer_ArchiveOnlineStore_Call

ArchiveOnlineStore is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.ArchiveOnlineStoreRequest

func (*CoreServer_Expecter) ArchiveProject

func (_e *CoreServer_Expecter) ArchiveProject(_a0 interface{}, _a1 interface{}) *CoreServer_ArchiveProject_Call

ArchiveProject is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.ArchiveProjectRequest

func (*CoreServer_Expecter) CreateProject

func (_e *CoreServer_Expecter) CreateProject(_a0 interface{}, _a1 interface{}) *CoreServer_CreateProject_Call

CreateProject is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.CreateProjectRequest

func (*CoreServer_Expecter) DeleteFeatureTable

func (_e *CoreServer_Expecter) DeleteFeatureTable(_a0 interface{}, _a1 interface{}) *CoreServer_DeleteFeatureTable_Call

DeleteFeatureTable is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.DeleteFeatureTableRequest

func (*CoreServer_Expecter) GetEntity

func (_e *CoreServer_Expecter) GetEntity(_a0 interface{}, _a1 interface{}) *CoreServer_GetEntity_Call

GetEntity is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.GetEntityRequest

func (*CoreServer_Expecter) GetFeastCoreVersion

func (_e *CoreServer_Expecter) GetFeastCoreVersion(_a0 interface{}, _a1 interface{}) *CoreServer_GetFeastCoreVersion_Call

GetFeastCoreVersion is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.GetFeastCoreVersionRequest

func (*CoreServer_Expecter) GetFeatureTable

func (_e *CoreServer_Expecter) GetFeatureTable(_a0 interface{}, _a1 interface{}) *CoreServer_GetFeatureTable_Call

GetFeatureTable is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.GetFeatureTableRequest

func (*CoreServer_Expecter) GetOnlineStore

func (_e *CoreServer_Expecter) GetOnlineStore(_a0 interface{}, _a1 interface{}) *CoreServer_GetOnlineStore_Call

GetOnlineStore is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.GetOnlineStoreRequest

func (*CoreServer_Expecter) ListEntities

func (_e *CoreServer_Expecter) ListEntities(_a0 interface{}, _a1 interface{}) *CoreServer_ListEntities_Call

ListEntities is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.ListEntitiesRequest

func (*CoreServer_Expecter) ListFeatureTables

func (_e *CoreServer_Expecter) ListFeatureTables(_a0 interface{}, _a1 interface{}) *CoreServer_ListFeatureTables_Call

ListFeatureTables is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.ListFeatureTablesRequest

func (*CoreServer_Expecter) ListFeatures

func (_e *CoreServer_Expecter) ListFeatures(_a0 interface{}, _a1 interface{}) *CoreServer_ListFeatures_Call

ListFeatures is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.ListFeaturesRequest

func (*CoreServer_Expecter) ListOnlineStores

func (_e *CoreServer_Expecter) ListOnlineStores(_a0 interface{}, _a1 interface{}) *CoreServer_ListOnlineStores_Call

ListOnlineStores is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.ListOnlineStoresRequest

func (*CoreServer_Expecter) ListProjects

func (_e *CoreServer_Expecter) ListProjects(_a0 interface{}, _a1 interface{}) *CoreServer_ListProjects_Call

ListProjects is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.ListProjectsRequest

func (*CoreServer_Expecter) RegisterOnlineStore

func (_e *CoreServer_Expecter) RegisterOnlineStore(_a0 interface{}, _a1 interface{}) *CoreServer_RegisterOnlineStore_Call

RegisterOnlineStore is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *core.RegisterOnlineStoreRequest

type CoreServer_GetEntity_Call

type CoreServer_GetEntity_Call struct {
	*mock.Call
}

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

func (*CoreServer_GetEntity_Call) Return

func (*CoreServer_GetEntity_Call) Run

type CoreServer_GetFeastCoreVersion_Call

type CoreServer_GetFeastCoreVersion_Call struct {
	*mock.Call
}

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

func (*CoreServer_GetFeastCoreVersion_Call) Return

func (*CoreServer_GetFeastCoreVersion_Call) Run

type CoreServer_GetFeatureTable_Call

type CoreServer_GetFeatureTable_Call struct {
	*mock.Call
}

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

func (*CoreServer_GetFeatureTable_Call) Return

func (*CoreServer_GetFeatureTable_Call) Run

type CoreServer_GetOnlineStore_Call

type CoreServer_GetOnlineStore_Call struct {
	*mock.Call
}

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

func (*CoreServer_GetOnlineStore_Call) Return

func (*CoreServer_GetOnlineStore_Call) Run

type CoreServer_ListEntities_Call

type CoreServer_ListEntities_Call struct {
	*mock.Call
}

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

func (*CoreServer_ListEntities_Call) Return

func (*CoreServer_ListEntities_Call) Run

type CoreServer_ListFeatureTables_Call

type CoreServer_ListFeatureTables_Call struct {
	*mock.Call
}

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

func (*CoreServer_ListFeatureTables_Call) Return

func (*CoreServer_ListFeatureTables_Call) Run

type CoreServer_ListFeatures_Call

type CoreServer_ListFeatures_Call struct {
	*mock.Call
}

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

func (*CoreServer_ListFeatures_Call) Return

func (*CoreServer_ListFeatures_Call) Run

type CoreServer_ListOnlineStores_Call

type CoreServer_ListOnlineStores_Call struct {
	*mock.Call
}

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

func (*CoreServer_ListOnlineStores_Call) Return

func (*CoreServer_ListOnlineStores_Call) Run

type CoreServer_ListProjects_Call

type CoreServer_ListProjects_Call struct {
	*mock.Call
}

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

func (*CoreServer_ListProjects_Call) Return

func (*CoreServer_ListProjects_Call) Run

type CoreServer_RegisterOnlineStore_Call

type CoreServer_RegisterOnlineStore_Call struct {
	*mock.Call
}

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

func (*CoreServer_RegisterOnlineStore_Call) Return

func (*CoreServer_RegisterOnlineStore_Call) Run

Jump to

Keyboard shortcuts

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