mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionService

type SessionService struct {
	mock.Mock
}

SessionService is an autogenerated mock type for the SessionService type

func NewSessionService

func NewSessionService(t mockConstructorTestingTNewSessionService) *SessionService

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

func (*SessionService) EXPECT

func (*SessionService) Query

func (_m *SessionService) Query(ctx context.Context, expr string, queryOptions scriptmanager.QueryOptions) (*models.ResultSet, error)

Query provides a mock function with given fields: ctx, expr, queryOptions

func (*SessionService) ResultSet

func (_m *SessionService) ResultSet(ctx context.Context) *models.ResultSet

ResultSet provides a mock function with given fields: ctx

func (*SessionService) SelectedItemIndex

func (_m *SessionService) SelectedItemIndex(ctx context.Context) int

SelectedItemIndex provides a mock function with given fields: ctx

func (*SessionService) SetResultSet

func (_m *SessionService) SetResultSet(ctx context.Context, newResultSet *models.ResultSet)

SetResultSet provides a mock function with given fields: ctx, newResultSet

type SessionService_Expecter

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

func (*SessionService_Expecter) Query

func (_e *SessionService_Expecter) Query(ctx interface{}, expr interface{}, queryOptions interface{}) *SessionService_Query_Call

Query is a helper method to define mock.On call

  • ctx context.Context
  • expr string
  • queryOptions scriptmanager.QueryOptions

func (*SessionService_Expecter) ResultSet

func (_e *SessionService_Expecter) ResultSet(ctx interface{}) *SessionService_ResultSet_Call

ResultSet is a helper method to define mock.On call

  • ctx context.Context

func (*SessionService_Expecter) SelectedItemIndex

func (_e *SessionService_Expecter) SelectedItemIndex(ctx interface{}) *SessionService_SelectedItemIndex_Call

SelectedItemIndex is a helper method to define mock.On call

  • ctx context.Context

func (*SessionService_Expecter) SetResultSet

func (_e *SessionService_Expecter) SetResultSet(ctx interface{}, newResultSet interface{}) *SessionService_SetResultSet_Call

SetResultSet is a helper method to define mock.On call

  • ctx context.Context
  • newResultSet *models.ResultSet

type SessionService_Query_Call

type SessionService_Query_Call struct {
	*mock.Call
}

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

func (*SessionService_Query_Call) Return

func (*SessionService_Query_Call) Run

func (*SessionService_Query_Call) RunAndReturn

type SessionService_ResultSet_Call

type SessionService_ResultSet_Call struct {
	*mock.Call
}

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

func (*SessionService_ResultSet_Call) Return

func (*SessionService_ResultSet_Call) Run

func (*SessionService_ResultSet_Call) RunAndReturn

type SessionService_SelectedItemIndex_Call

type SessionService_SelectedItemIndex_Call struct {
	*mock.Call
}

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

func (*SessionService_SelectedItemIndex_Call) Return

func (*SessionService_SelectedItemIndex_Call) Run

func (*SessionService_SelectedItemIndex_Call) RunAndReturn

type SessionService_SetResultSet_Call

type SessionService_SetResultSet_Call struct {
	*mock.Call
}

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

func (*SessionService_SetResultSet_Call) Return

func (*SessionService_SetResultSet_Call) Run

func (*SessionService_SetResultSet_Call) RunAndReturn

type UIService

type UIService struct {
	mock.Mock
}

UIService is an autogenerated mock type for the UIService type

func NewUIService

func NewUIService(t mockConstructorTestingTNewUIService) *UIService

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

func (*UIService) EXPECT

func (_m *UIService) EXPECT() *UIService_Expecter

func (*UIService) PrintMessage

func (_m *UIService) PrintMessage(ctx context.Context, msg string)

PrintMessage provides a mock function with given fields: ctx, msg

func (*UIService) Prompt

func (_m *UIService) Prompt(ctx context.Context, msg string) chan string

Prompt provides a mock function with given fields: ctx, msg

type UIService_Expecter

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

func (*UIService_Expecter) PrintMessage

func (_e *UIService_Expecter) PrintMessage(ctx interface{}, msg interface{}) *UIService_PrintMessage_Call

PrintMessage is a helper method to define mock.On call

  • ctx context.Context
  • msg string

func (*UIService_Expecter) Prompt

func (_e *UIService_Expecter) Prompt(ctx interface{}, msg interface{}) *UIService_Prompt_Call

Prompt is a helper method to define mock.On call

  • ctx context.Context
  • msg string

type UIService_PrintMessage_Call

type UIService_PrintMessage_Call struct {
	*mock.Call
}

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

func (*UIService_PrintMessage_Call) Return

func (*UIService_PrintMessage_Call) Run

func (*UIService_PrintMessage_Call) RunAndReturn

type UIService_Prompt_Call

type UIService_Prompt_Call struct {
	*mock.Call
}

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

func (*UIService_Prompt_Call) Return

func (_c *UIService_Prompt_Call) Return(_a0 chan string) *UIService_Prompt_Call

func (*UIService_Prompt_Call) Run

func (_c *UIService_Prompt_Call) Run(run func(ctx context.Context, msg string)) *UIService_Prompt_Call

func (*UIService_Prompt_Call) RunAndReturn

func (_c *UIService_Prompt_Call) RunAndReturn(run func(context.Context, string) chan string) *UIService_Prompt_Call

Jump to

Keyboard shortcuts

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