mocks

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MerlinClient

type MerlinClient struct {
	mock.Mock
}

MerlinClient is an autogenerated mock type for the Client type

func NewMerlinClient

func NewMerlinClient(t mockConstructorTestingTNewMerlinClient) *MerlinClient

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

func (*MerlinClient) EXPECT

func (_m *MerlinClient) EXPECT() *MerlinClient_Expecter

func (*MerlinClient) ModelVersion

func (_m *MerlinClient) ModelVersion(ctx context.Context, modelID int64, versionID int64) (merlin.ModelVersion, error)

ModelVersion provides a mock function with given fields: ctx, modelID, versionID

func (*MerlinClient) Models

func (_m *MerlinClient) Models(ctx context.Context, projectID int64) ([]merlin.Model, error)

Models provides a mock function with given fields: ctx, projectID

func (*MerlinClient) Projects

func (_m *MerlinClient) Projects(ctx context.Context) ([]merlin.Project, error)

Projects provides a mock function with given fields: ctx

type MerlinClient_Expecter

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

func (*MerlinClient_Expecter) ModelVersion

func (_e *MerlinClient_Expecter) ModelVersion(ctx interface{}, modelID interface{}, versionID interface{}) *MerlinClient_ModelVersion_Call

ModelVersion is a helper method to define mock.On call

  • ctx context.Context
  • modelID int64
  • versionID int64

func (*MerlinClient_Expecter) Models

func (_e *MerlinClient_Expecter) Models(ctx interface{}, projectID interface{}) *MerlinClient_Models_Call

Models is a helper method to define mock.On call

  • ctx context.Context
  • projectID int64

func (*MerlinClient_Expecter) Projects

func (_e *MerlinClient_Expecter) Projects(ctx interface{}) *MerlinClient_Projects_Call

Projects is a helper method to define mock.On call

  • ctx context.Context

type MerlinClient_ModelVersion_Call

type MerlinClient_ModelVersion_Call struct {
	*mock.Call
}

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

func (*MerlinClient_ModelVersion_Call) Return

func (*MerlinClient_ModelVersion_Call) Run

func (_c *MerlinClient_ModelVersion_Call) Run(run func(ctx context.Context, modelID int64, versionID int64)) *MerlinClient_ModelVersion_Call

type MerlinClient_Models_Call

type MerlinClient_Models_Call struct {
	*mock.Call
}

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

func (*MerlinClient_Models_Call) Return

func (*MerlinClient_Models_Call) Run

func (_c *MerlinClient_Models_Call) Run(run func(ctx context.Context, projectID int64)) *MerlinClient_Models_Call

type MerlinClient_Projects_Call

type MerlinClient_Projects_Call struct {
	*mock.Call
}

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

func (*MerlinClient_Projects_Call) Return

func (*MerlinClient_Projects_Call) Run

Jump to

Keyboard shortcuts

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