Documentation ¶
Index ¶
- type SessionService
- func (_m *SessionService) EXPECT() *SessionService_Expecter
- func (_m *SessionService) Query(ctx context.Context, expr string, queryOptions scriptmanager.QueryOptions) (*models.ResultSet, error)
- func (_m *SessionService) ResultSet(ctx context.Context) *models.ResultSet
- func (_m *SessionService) SelectedItemIndex(ctx context.Context) int
- func (_m *SessionService) SetResultSet(ctx context.Context, newResultSet *models.ResultSet)
- type SessionService_Expecter
- func (_e *SessionService_Expecter) Query(ctx interface{}, expr interface{}, queryOptions interface{}) *SessionService_Query_Call
- func (_e *SessionService_Expecter) ResultSet(ctx interface{}) *SessionService_ResultSet_Call
- func (_e *SessionService_Expecter) SelectedItemIndex(ctx interface{}) *SessionService_SelectedItemIndex_Call
- func (_e *SessionService_Expecter) SetResultSet(ctx interface{}, newResultSet interface{}) *SessionService_SetResultSet_Call
- type SessionService_Query_Call
- type SessionService_ResultSet_Call
- func (_c *SessionService_ResultSet_Call) Return(_a0 *models.ResultSet) *SessionService_ResultSet_Call
- func (_c *SessionService_ResultSet_Call) Run(run func(ctx context.Context)) *SessionService_ResultSet_Call
- func (_c *SessionService_ResultSet_Call) RunAndReturn(run func(context.Context) *models.ResultSet) *SessionService_ResultSet_Call
- type SessionService_SelectedItemIndex_Call
- func (_c *SessionService_SelectedItemIndex_Call) Return(_a0 int) *SessionService_SelectedItemIndex_Call
- func (_c *SessionService_SelectedItemIndex_Call) Run(run func(ctx context.Context)) *SessionService_SelectedItemIndex_Call
- func (_c *SessionService_SelectedItemIndex_Call) RunAndReturn(run func(context.Context) int) *SessionService_SelectedItemIndex_Call
- type SessionService_SetResultSet_Call
- func (_c *SessionService_SetResultSet_Call) Return() *SessionService_SetResultSet_Call
- func (_c *SessionService_SetResultSet_Call) Run(run func(ctx context.Context, newResultSet *models.ResultSet)) *SessionService_SetResultSet_Call
- func (_c *SessionService_SetResultSet_Call) RunAndReturn(run func(context.Context, *models.ResultSet)) *SessionService_SetResultSet_Call
- type UIService
- type UIService_Expecter
- type UIService_PrintMessage_Call
- func (_c *UIService_PrintMessage_Call) Return() *UIService_PrintMessage_Call
- func (_c *UIService_PrintMessage_Call) Run(run func(ctx context.Context, msg string)) *UIService_PrintMessage_Call
- func (_c *UIService_PrintMessage_Call) RunAndReturn(run func(context.Context, string)) *UIService_PrintMessage_Call
- type UIService_Prompt_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionService ¶
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 (_m *SessionService) EXPECT() *SessionService_Expecter
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 ¶
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 (_c *SessionService_Query_Call) Return(_a0 *models.ResultSet, _a1 error) *SessionService_Query_Call
func (*SessionService_Query_Call) Run ¶
func (_c *SessionService_Query_Call) Run(run func(ctx context.Context, expr string, queryOptions scriptmanager.QueryOptions)) *SessionService_Query_Call
func (*SessionService_Query_Call) RunAndReturn ¶
func (_c *SessionService_Query_Call) RunAndReturn(run func(context.Context, string, scriptmanager.QueryOptions) (*models.ResultSet, error)) *SessionService_Query_Call
type SessionService_ResultSet_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 (_c *SessionService_ResultSet_Call) Return(_a0 *models.ResultSet) *SessionService_ResultSet_Call
func (*SessionService_ResultSet_Call) Run ¶
func (_c *SessionService_ResultSet_Call) Run(run func(ctx context.Context)) *SessionService_ResultSet_Call
func (*SessionService_ResultSet_Call) RunAndReturn ¶
func (_c *SessionService_ResultSet_Call) RunAndReturn(run func(context.Context) *models.ResultSet) *SessionService_ResultSet_Call
type SessionService_SelectedItemIndex_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 (_c *SessionService_SelectedItemIndex_Call) Return(_a0 int) *SessionService_SelectedItemIndex_Call
func (*SessionService_SelectedItemIndex_Call) Run ¶
func (_c *SessionService_SelectedItemIndex_Call) Run(run func(ctx context.Context)) *SessionService_SelectedItemIndex_Call
func (*SessionService_SelectedItemIndex_Call) RunAndReturn ¶
func (_c *SessionService_SelectedItemIndex_Call) RunAndReturn(run func(context.Context) int) *SessionService_SelectedItemIndex_Call
type SessionService_SetResultSet_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 (_c *SessionService_SetResultSet_Call) Return() *SessionService_SetResultSet_Call
func (*SessionService_SetResultSet_Call) Run ¶
func (_c *SessionService_SetResultSet_Call) Run(run func(ctx context.Context, newResultSet *models.ResultSet)) *SessionService_SetResultSet_Call
func (*SessionService_SetResultSet_Call) RunAndReturn ¶
func (_c *SessionService_SetResultSet_Call) RunAndReturn(run func(context.Context, *models.ResultSet)) *SessionService_SetResultSet_Call
type UIService ¶
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 ¶
PrintMessage 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 ¶
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 (_c *UIService_PrintMessage_Call) Return() *UIService_PrintMessage_Call
func (*UIService_PrintMessage_Call) Run ¶
func (_c *UIService_PrintMessage_Call) Run(run func(ctx context.Context, msg string)) *UIService_PrintMessage_Call
func (*UIService_PrintMessage_Call) RunAndReturn ¶
func (_c *UIService_PrintMessage_Call) RunAndReturn(run func(context.Context, string)) *UIService_PrintMessage_Call
type UIService_Prompt_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