Documentation
¶
Index ¶
- type MockAgent
- func (_m *MockAgent) EXPECT() *MockAgent_Expecter
- func (_mock *MockAgent) Prepare(ctx context.Context) error
- func (_mock *MockAgent) Remove(ctx context.Context) error
- func (_mock *MockAgent) Run(ctx context.Context) error
- func (_mock *MockAgent) Runtime() *executor.Runtime
- func (_mock *MockAgent) Start(ctx context.Context) error
- func (_mock *MockAgent) Status() executor.Status
- func (_mock *MockAgent) Stop(ctx context.Context) error
- func (_mock *MockAgent) SubscribeStatus() (<-chan executor.Status, func())
- func (_mock *MockAgent) UUID() uuid.UUID
- type MockAgent_Expecter
- func (_e *MockAgent_Expecter) Prepare(ctx interface{}) *MockAgent_Prepare_Call
- func (_e *MockAgent_Expecter) Remove(ctx interface{}) *MockAgent_Remove_Call
- func (_e *MockAgent_Expecter) Run(ctx interface{}) *MockAgent_Run_Call
- func (_e *MockAgent_Expecter) Runtime() *MockAgent_Runtime_Call
- func (_e *MockAgent_Expecter) Start(ctx interface{}) *MockAgent_Start_Call
- func (_e *MockAgent_Expecter) Status() *MockAgent_Status_Call
- func (_e *MockAgent_Expecter) Stop(ctx interface{}) *MockAgent_Stop_Call
- func (_e *MockAgent_Expecter) SubscribeStatus() *MockAgent_SubscribeStatus_Call
- func (_e *MockAgent_Expecter) UUID() *MockAgent_UUID_Call
- type MockAgent_Prepare_Call
- type MockAgent_Remove_Call
- type MockAgent_Run_Call
- type MockAgent_Runtime_Call
- type MockAgent_Start_Call
- type MockAgent_Status_Call
- type MockAgent_Stop_Call
- type MockAgent_SubscribeStatus_Call
- func (_c *MockAgent_SubscribeStatus_Call) Return(statusCh <-chan executor.Status, fn func()) *MockAgent_SubscribeStatus_Call
- func (_c *MockAgent_SubscribeStatus_Call) Run(run func()) *MockAgent_SubscribeStatus_Call
- func (_c *MockAgent_SubscribeStatus_Call) RunAndReturn(run func() (<-chan executor.Status, func())) *MockAgent_SubscribeStatus_Call
- type MockAgent_UUID_Call
- type MockObjectPrompter
- type MockObjectPrompter_Expecter
- type MockObjectPrompter_PromptObject_Call
- func (_c *MockObjectPrompter_PromptObject_Call) Return(bytes []byte, err error) *MockObjectPrompter_PromptObject_Call
- func (_c *MockObjectPrompter_PromptObject_Call) Run(run func(ctx context.Context, req executor.ObjectPromptRequest)) *MockObjectPrompter_PromptObject_Call
- func (_c *MockObjectPrompter_PromptObject_Call) RunAndReturn(...) *MockObjectPrompter_PromptObject_Call
- type MockPrompter
- type MockPrompter_Expecter
- type MockPrompter_Prompt_Call
- func (_c *MockPrompter_Prompt_Call) Return(err error) *MockPrompter_Prompt_Call
- func (_c *MockPrompter_Prompt_Call) Run(run func(ctx context.Context, req executor.PromptRequest, w io.Writer)) *MockPrompter_Prompt_Call
- func (_c *MockPrompter_Prompt_Call) RunAndReturn(run func(ctx context.Context, req executor.PromptRequest, w io.Writer) error) *MockPrompter_Prompt_Call
- type MockProvider
- func (_mock *MockProvider) Create(ctx context.Context, id uuid.UUID, ref spec.Reference, opts ...spec.Override) (executor.Agent, error)
- func (_mock *MockProvider) Destroy(ctx context.Context) error
- func (_m *MockProvider) EXPECT() *MockProvider_Expecter
- func (_mock *MockProvider) Load(ctx context.Context) ([]executor.Agent, error)
- func (_mock *MockProvider) Registry() executor.Registry
- type MockProvider_Create_Call
- type MockProvider_Destroy_Call
- type MockProvider_Expecter
- func (_e *MockProvider_Expecter) Create(ctx interface{}, id interface{}, ref interface{}, opts ...interface{}) *MockProvider_Create_Call
- func (_e *MockProvider_Expecter) Destroy(ctx interface{}) *MockProvider_Destroy_Call
- func (_e *MockProvider_Expecter) Load(ctx interface{}) *MockProvider_Load_Call
- func (_e *MockProvider_Expecter) Registry() *MockProvider_Registry_Call
- type MockProvider_Load_Call
- func (_c *MockProvider_Load_Call) Return(agents []executor.Agent, err error) *MockProvider_Load_Call
- func (_c *MockProvider_Load_Call) Run(run func(ctx context.Context)) *MockProvider_Load_Call
- func (_c *MockProvider_Load_Call) RunAndReturn(run func(ctx context.Context) ([]executor.Agent, error)) *MockProvider_Load_Call
- type MockProvider_Registry_Call
- type MockSessionReader
- type MockSessionReader_Expecter
- type MockSessionReader_ListSessionMessages_Call
- func (_c *MockSessionReader_ListSessionMessages_Call) Return(sessionMessages []executor.SessionMessage, err error) *MockSessionReader_ListSessionMessages_Call
- func (_c *MockSessionReader_ListSessionMessages_Call) Run(run func(ctx context.Context, sessionID string, limit int)) *MockSessionReader_ListSessionMessages_Call
- func (_c *MockSessionReader_ListSessionMessages_Call) RunAndReturn(...) *MockSessionReader_ListSessionMessages_Call
- type MockStatusObserver
- type MockStatusObserver_Expecter
- type MockStatusObserver_Status_Call
- func (_c *MockStatusObserver_Status_Call) Return(status executor.Status) *MockStatusObserver_Status_Call
- func (_c *MockStatusObserver_Status_Call) Run(run func()) *MockStatusObserver_Status_Call
- func (_c *MockStatusObserver_Status_Call) RunAndReturn(run func() executor.Status) *MockStatusObserver_Status_Call
- type MockStatusObserver_SubscribeStatus_Call
- func (_c *MockStatusObserver_SubscribeStatus_Call) Return(statusCh <-chan executor.Status, fn func()) *MockStatusObserver_SubscribeStatus_Call
- func (_c *MockStatusObserver_SubscribeStatus_Call) Run(run func()) *MockStatusObserver_SubscribeStatus_Call
- func (_c *MockStatusObserver_SubscribeStatus_Call) RunAndReturn(run func() (<-chan executor.Status, func())) *MockStatusObserver_SubscribeStatus_Call
- type MockStreamPrompter
- type MockStreamPrompter_Expecter
- type MockStreamPrompter_PromptStream_Call
- func (_c *MockStreamPrompter_PromptStream_Call) Return(err error) *MockStreamPrompter_PromptStream_Call
- func (_c *MockStreamPrompter_PromptStream_Call) Run(...) *MockStreamPrompter_PromptStream_Call
- func (_c *MockStreamPrompter_PromptStream_Call) RunAndReturn(...) *MockStreamPrompter_PromptStream_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAgent ¶
MockAgent is an autogenerated mock type for the Agent type
func NewMockAgent ¶
NewMockAgent creates a new instance of MockAgent. 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 (*MockAgent) EXPECT ¶
func (_m *MockAgent) EXPECT() *MockAgent_Expecter
func (*MockAgent) SubscribeStatus ¶
SubscribeStatus provides a mock function for the type MockAgent
type MockAgent_Expecter ¶
type MockAgent_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAgent_Expecter) Prepare ¶
func (_e *MockAgent_Expecter) Prepare(ctx interface{}) *MockAgent_Prepare_Call
Prepare is a helper method to define mock.On call
- ctx context.Context
func (*MockAgent_Expecter) Remove ¶
func (_e *MockAgent_Expecter) Remove(ctx interface{}) *MockAgent_Remove_Call
Remove is a helper method to define mock.On call
- ctx context.Context
func (*MockAgent_Expecter) Run ¶
func (_e *MockAgent_Expecter) Run(ctx interface{}) *MockAgent_Run_Call
Run is a helper method to define mock.On call
- ctx context.Context
func (*MockAgent_Expecter) Runtime ¶
func (_e *MockAgent_Expecter) Runtime() *MockAgent_Runtime_Call
Runtime is a helper method to define mock.On call
func (*MockAgent_Expecter) Start ¶
func (_e *MockAgent_Expecter) Start(ctx interface{}) *MockAgent_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
func (*MockAgent_Expecter) Status ¶
func (_e *MockAgent_Expecter) Status() *MockAgent_Status_Call
Status is a helper method to define mock.On call
func (*MockAgent_Expecter) Stop ¶
func (_e *MockAgent_Expecter) Stop(ctx interface{}) *MockAgent_Stop_Call
Stop is a helper method to define mock.On call
- ctx context.Context
func (*MockAgent_Expecter) SubscribeStatus ¶
func (_e *MockAgent_Expecter) SubscribeStatus() *MockAgent_SubscribeStatus_Call
SubscribeStatus is a helper method to define mock.On call
func (*MockAgent_Expecter) UUID ¶
func (_e *MockAgent_Expecter) UUID() *MockAgent_UUID_Call
UUID is a helper method to define mock.On call
type MockAgent_Prepare_Call ¶
MockAgent_Prepare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prepare'
func (*MockAgent_Prepare_Call) Return ¶
func (_c *MockAgent_Prepare_Call) Return(err error) *MockAgent_Prepare_Call
func (*MockAgent_Prepare_Call) Run ¶
func (_c *MockAgent_Prepare_Call) Run(run func(ctx context.Context)) *MockAgent_Prepare_Call
func (*MockAgent_Prepare_Call) RunAndReturn ¶
func (_c *MockAgent_Prepare_Call) RunAndReturn(run func(ctx context.Context) error) *MockAgent_Prepare_Call
type MockAgent_Remove_Call ¶
MockAgent_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*MockAgent_Remove_Call) Return ¶
func (_c *MockAgent_Remove_Call) Return(err error) *MockAgent_Remove_Call
func (*MockAgent_Remove_Call) Run ¶
func (_c *MockAgent_Remove_Call) Run(run func(ctx context.Context)) *MockAgent_Remove_Call
func (*MockAgent_Remove_Call) RunAndReturn ¶
func (_c *MockAgent_Remove_Call) RunAndReturn(run func(ctx context.Context) error) *MockAgent_Remove_Call
type MockAgent_Run_Call ¶
MockAgent_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*MockAgent_Run_Call) Return ¶
func (_c *MockAgent_Run_Call) Return(err error) *MockAgent_Run_Call
func (*MockAgent_Run_Call) Run ¶
func (_c *MockAgent_Run_Call) Run(run func(ctx context.Context)) *MockAgent_Run_Call
func (*MockAgent_Run_Call) RunAndReturn ¶
func (_c *MockAgent_Run_Call) RunAndReturn(run func(ctx context.Context) error) *MockAgent_Run_Call
type MockAgent_Runtime_Call ¶
MockAgent_Runtime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Runtime'
func (*MockAgent_Runtime_Call) Return ¶
func (_c *MockAgent_Runtime_Call) Return(runtime *executor.Runtime) *MockAgent_Runtime_Call
func (*MockAgent_Runtime_Call) Run ¶
func (_c *MockAgent_Runtime_Call) Run(run func()) *MockAgent_Runtime_Call
func (*MockAgent_Runtime_Call) RunAndReturn ¶
func (_c *MockAgent_Runtime_Call) RunAndReturn(run func() *executor.Runtime) *MockAgent_Runtime_Call
type MockAgent_Start_Call ¶
MockAgent_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*MockAgent_Start_Call) Return ¶
func (_c *MockAgent_Start_Call) Return(err error) *MockAgent_Start_Call
func (*MockAgent_Start_Call) Run ¶
func (_c *MockAgent_Start_Call) Run(run func(ctx context.Context)) *MockAgent_Start_Call
func (*MockAgent_Start_Call) RunAndReturn ¶
func (_c *MockAgent_Start_Call) RunAndReturn(run func(ctx context.Context) error) *MockAgent_Start_Call
type MockAgent_Status_Call ¶
MockAgent_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*MockAgent_Status_Call) Return ¶
func (_c *MockAgent_Status_Call) Return(status executor.Status) *MockAgent_Status_Call
func (*MockAgent_Status_Call) Run ¶
func (_c *MockAgent_Status_Call) Run(run func()) *MockAgent_Status_Call
func (*MockAgent_Status_Call) RunAndReturn ¶
func (_c *MockAgent_Status_Call) RunAndReturn(run func() executor.Status) *MockAgent_Status_Call
type MockAgent_Stop_Call ¶
MockAgent_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*MockAgent_Stop_Call) Return ¶
func (_c *MockAgent_Stop_Call) Return(err error) *MockAgent_Stop_Call
func (*MockAgent_Stop_Call) Run ¶
func (_c *MockAgent_Stop_Call) Run(run func(ctx context.Context)) *MockAgent_Stop_Call
func (*MockAgent_Stop_Call) RunAndReturn ¶
func (_c *MockAgent_Stop_Call) RunAndReturn(run func(ctx context.Context) error) *MockAgent_Stop_Call
type MockAgent_SubscribeStatus_Call ¶
MockAgent_SubscribeStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeStatus'
func (*MockAgent_SubscribeStatus_Call) Return ¶
func (_c *MockAgent_SubscribeStatus_Call) Return(statusCh <-chan executor.Status, fn func()) *MockAgent_SubscribeStatus_Call
func (*MockAgent_SubscribeStatus_Call) Run ¶
func (_c *MockAgent_SubscribeStatus_Call) Run(run func()) *MockAgent_SubscribeStatus_Call
func (*MockAgent_SubscribeStatus_Call) RunAndReturn ¶
func (_c *MockAgent_SubscribeStatus_Call) RunAndReturn(run func() (<-chan executor.Status, func())) *MockAgent_SubscribeStatus_Call
type MockAgent_UUID_Call ¶
MockAgent_UUID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UUID'
func (*MockAgent_UUID_Call) Return ¶
func (_c *MockAgent_UUID_Call) Return(uUID uuid.UUID) *MockAgent_UUID_Call
func (*MockAgent_UUID_Call) Run ¶
func (_c *MockAgent_UUID_Call) Run(run func()) *MockAgent_UUID_Call
func (*MockAgent_UUID_Call) RunAndReturn ¶
func (_c *MockAgent_UUID_Call) RunAndReturn(run func() uuid.UUID) *MockAgent_UUID_Call
type MockObjectPrompter ¶
MockObjectPrompter is an autogenerated mock type for the ObjectPrompter type
func NewMockObjectPrompter ¶
func NewMockObjectPrompter(t interface {
mock.TestingT
Cleanup(func())
}) *MockObjectPrompter
NewMockObjectPrompter creates a new instance of MockObjectPrompter. 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 (*MockObjectPrompter) EXPECT ¶
func (_m *MockObjectPrompter) EXPECT() *MockObjectPrompter_Expecter
func (*MockObjectPrompter) PromptObject ¶
func (_mock *MockObjectPrompter) PromptObject(ctx context.Context, req executor.ObjectPromptRequest) ([]byte, error)
PromptObject provides a mock function for the type MockObjectPrompter
type MockObjectPrompter_Expecter ¶
type MockObjectPrompter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockObjectPrompter_Expecter) PromptObject ¶
func (_e *MockObjectPrompter_Expecter) PromptObject(ctx interface{}, req interface{}) *MockObjectPrompter_PromptObject_Call
PromptObject is a helper method to define mock.On call
- ctx context.Context
- req executor.ObjectPromptRequest
type MockObjectPrompter_PromptObject_Call ¶
MockObjectPrompter_PromptObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PromptObject'
func (*MockObjectPrompter_PromptObject_Call) Return ¶
func (_c *MockObjectPrompter_PromptObject_Call) Return(bytes []byte, err error) *MockObjectPrompter_PromptObject_Call
func (*MockObjectPrompter_PromptObject_Call) Run ¶
func (_c *MockObjectPrompter_PromptObject_Call) Run(run func(ctx context.Context, req executor.ObjectPromptRequest)) *MockObjectPrompter_PromptObject_Call
func (*MockObjectPrompter_PromptObject_Call) RunAndReturn ¶
func (_c *MockObjectPrompter_PromptObject_Call) RunAndReturn(run func(ctx context.Context, req executor.ObjectPromptRequest) ([]byte, error)) *MockObjectPrompter_PromptObject_Call
type MockPrompter ¶
MockPrompter is an autogenerated mock type for the Prompter type
func NewMockPrompter ¶
func NewMockPrompter(t interface {
mock.TestingT
Cleanup(func())
}) *MockPrompter
NewMockPrompter creates a new instance of MockPrompter. 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 (*MockPrompter) EXPECT ¶
func (_m *MockPrompter) EXPECT() *MockPrompter_Expecter
func (*MockPrompter) Prompt ¶
func (_mock *MockPrompter) Prompt(ctx context.Context, req executor.PromptRequest, w io.Writer) error
Prompt provides a mock function for the type MockPrompter
type MockPrompter_Expecter ¶
type MockPrompter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPrompter_Expecter) Prompt ¶
func (_e *MockPrompter_Expecter) Prompt(ctx interface{}, req interface{}, w interface{}) *MockPrompter_Prompt_Call
Prompt is a helper method to define mock.On call
- ctx context.Context
- req executor.PromptRequest
- w io.Writer
type MockPrompter_Prompt_Call ¶
MockPrompter_Prompt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prompt'
func (*MockPrompter_Prompt_Call) Return ¶
func (_c *MockPrompter_Prompt_Call) Return(err error) *MockPrompter_Prompt_Call
func (*MockPrompter_Prompt_Call) Run ¶
func (_c *MockPrompter_Prompt_Call) Run(run func(ctx context.Context, req executor.PromptRequest, w io.Writer)) *MockPrompter_Prompt_Call
func (*MockPrompter_Prompt_Call) RunAndReturn ¶
func (_c *MockPrompter_Prompt_Call) RunAndReturn(run func(ctx context.Context, req executor.PromptRequest, w io.Writer) error) *MockPrompter_Prompt_Call
type MockProvider ¶
MockProvider is an autogenerated mock type for the Provider type
func NewMockProvider ¶
func NewMockProvider(t interface {
mock.TestingT
Cleanup(func())
}) *MockProvider
NewMockProvider creates a new instance of MockProvider. 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 (*MockProvider) Create ¶
func (_mock *MockProvider) Create(ctx context.Context, id uuid.UUID, ref spec.Reference, opts ...spec.Override) (executor.Agent, error)
Create provides a mock function for the type MockProvider
func (*MockProvider) Destroy ¶
func (_mock *MockProvider) Destroy(ctx context.Context) error
Destroy provides a mock function for the type MockProvider
func (*MockProvider) EXPECT ¶
func (_m *MockProvider) EXPECT() *MockProvider_Expecter
func (*MockProvider) Registry ¶
func (_mock *MockProvider) Registry() executor.Registry
Registry provides a mock function for the type MockProvider
type MockProvider_Create_Call ¶
MockProvider_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockProvider_Create_Call) Return ¶
func (_c *MockProvider_Create_Call) Return(agent executor.Agent, err error) *MockProvider_Create_Call
func (*MockProvider_Create_Call) Run ¶
func (_c *MockProvider_Create_Call) Run(run func(ctx context.Context, id uuid.UUID, ref spec.Reference, opts ...spec.Override)) *MockProvider_Create_Call
func (*MockProvider_Create_Call) RunAndReturn ¶
type MockProvider_Destroy_Call ¶
MockProvider_Destroy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Destroy'
func (*MockProvider_Destroy_Call) Return ¶
func (_c *MockProvider_Destroy_Call) Return(err error) *MockProvider_Destroy_Call
func (*MockProvider_Destroy_Call) Run ¶
func (_c *MockProvider_Destroy_Call) Run(run func(ctx context.Context)) *MockProvider_Destroy_Call
func (*MockProvider_Destroy_Call) RunAndReturn ¶
func (_c *MockProvider_Destroy_Call) RunAndReturn(run func(ctx context.Context) error) *MockProvider_Destroy_Call
type MockProvider_Expecter ¶
type MockProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*MockProvider_Expecter) Create ¶
func (_e *MockProvider_Expecter) Create(ctx interface{}, id interface{}, ref interface{}, opts ...interface{}) *MockProvider_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
- ref spec.Reference
- opts ...spec.Override
func (*MockProvider_Expecter) Destroy ¶
func (_e *MockProvider_Expecter) Destroy(ctx interface{}) *MockProvider_Destroy_Call
Destroy is a helper method to define mock.On call
- ctx context.Context
func (*MockProvider_Expecter) Load ¶
func (_e *MockProvider_Expecter) Load(ctx interface{}) *MockProvider_Load_Call
Load is a helper method to define mock.On call
- ctx context.Context
func (*MockProvider_Expecter) Registry ¶
func (_e *MockProvider_Expecter) Registry() *MockProvider_Registry_Call
Registry is a helper method to define mock.On call
type MockProvider_Load_Call ¶
MockProvider_Load_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Load'
func (*MockProvider_Load_Call) Return ¶
func (_c *MockProvider_Load_Call) Return(agents []executor.Agent, err error) *MockProvider_Load_Call
func (*MockProvider_Load_Call) Run ¶
func (_c *MockProvider_Load_Call) Run(run func(ctx context.Context)) *MockProvider_Load_Call
func (*MockProvider_Load_Call) RunAndReturn ¶
func (_c *MockProvider_Load_Call) RunAndReturn(run func(ctx context.Context) ([]executor.Agent, error)) *MockProvider_Load_Call
type MockProvider_Registry_Call ¶
MockProvider_Registry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Registry'
func (*MockProvider_Registry_Call) Return ¶
func (_c *MockProvider_Registry_Call) Return(registry executor.Registry) *MockProvider_Registry_Call
func (*MockProvider_Registry_Call) Run ¶
func (_c *MockProvider_Registry_Call) Run(run func()) *MockProvider_Registry_Call
func (*MockProvider_Registry_Call) RunAndReturn ¶
func (_c *MockProvider_Registry_Call) RunAndReturn(run func() executor.Registry) *MockProvider_Registry_Call
type MockSessionReader ¶
MockSessionReader is an autogenerated mock type for the SessionReader type
func NewMockSessionReader ¶
func NewMockSessionReader(t interface {
mock.TestingT
Cleanup(func())
}) *MockSessionReader
NewMockSessionReader creates a new instance of MockSessionReader. 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 (*MockSessionReader) EXPECT ¶
func (_m *MockSessionReader) EXPECT() *MockSessionReader_Expecter
func (*MockSessionReader) ListSessionMessages ¶
func (_mock *MockSessionReader) ListSessionMessages(ctx context.Context, sessionID string, limit int) ([]executor.SessionMessage, error)
ListSessionMessages provides a mock function for the type MockSessionReader
type MockSessionReader_Expecter ¶
type MockSessionReader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSessionReader_Expecter) ListSessionMessages ¶
func (_e *MockSessionReader_Expecter) ListSessionMessages(ctx interface{}, sessionID interface{}, limit interface{}) *MockSessionReader_ListSessionMessages_Call
ListSessionMessages is a helper method to define mock.On call
- ctx context.Context
- sessionID string
- limit int
type MockSessionReader_ListSessionMessages_Call ¶
MockSessionReader_ListSessionMessages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListSessionMessages'
func (*MockSessionReader_ListSessionMessages_Call) Return ¶
func (_c *MockSessionReader_ListSessionMessages_Call) Return(sessionMessages []executor.SessionMessage, err error) *MockSessionReader_ListSessionMessages_Call
func (*MockSessionReader_ListSessionMessages_Call) Run ¶
func (_c *MockSessionReader_ListSessionMessages_Call) Run(run func(ctx context.Context, sessionID string, limit int)) *MockSessionReader_ListSessionMessages_Call
func (*MockSessionReader_ListSessionMessages_Call) RunAndReturn ¶
func (_c *MockSessionReader_ListSessionMessages_Call) RunAndReturn(run func(ctx context.Context, sessionID string, limit int) ([]executor.SessionMessage, error)) *MockSessionReader_ListSessionMessages_Call
type MockStatusObserver ¶
MockStatusObserver is an autogenerated mock type for the StatusObserver type
func NewMockStatusObserver ¶
func NewMockStatusObserver(t interface {
mock.TestingT
Cleanup(func())
}) *MockStatusObserver
NewMockStatusObserver creates a new instance of MockStatusObserver. 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 (*MockStatusObserver) EXPECT ¶
func (_m *MockStatusObserver) EXPECT() *MockStatusObserver_Expecter
func (*MockStatusObserver) Status ¶
func (_mock *MockStatusObserver) Status() executor.Status
Status provides a mock function for the type MockStatusObserver
func (*MockStatusObserver) SubscribeStatus ¶
func (_mock *MockStatusObserver) SubscribeStatus() (<-chan executor.Status, func())
SubscribeStatus provides a mock function for the type MockStatusObserver
type MockStatusObserver_Expecter ¶
type MockStatusObserver_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStatusObserver_Expecter) Status ¶
func (_e *MockStatusObserver_Expecter) Status() *MockStatusObserver_Status_Call
Status is a helper method to define mock.On call
func (*MockStatusObserver_Expecter) SubscribeStatus ¶
func (_e *MockStatusObserver_Expecter) SubscribeStatus() *MockStatusObserver_SubscribeStatus_Call
SubscribeStatus is a helper method to define mock.On call
type MockStatusObserver_Status_Call ¶
MockStatusObserver_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*MockStatusObserver_Status_Call) Return ¶
func (_c *MockStatusObserver_Status_Call) Return(status executor.Status) *MockStatusObserver_Status_Call
func (*MockStatusObserver_Status_Call) Run ¶
func (_c *MockStatusObserver_Status_Call) Run(run func()) *MockStatusObserver_Status_Call
func (*MockStatusObserver_Status_Call) RunAndReturn ¶
func (_c *MockStatusObserver_Status_Call) RunAndReturn(run func() executor.Status) *MockStatusObserver_Status_Call
type MockStatusObserver_SubscribeStatus_Call ¶
MockStatusObserver_SubscribeStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeStatus'
func (*MockStatusObserver_SubscribeStatus_Call) Return ¶
func (_c *MockStatusObserver_SubscribeStatus_Call) Return(statusCh <-chan executor.Status, fn func()) *MockStatusObserver_SubscribeStatus_Call
func (*MockStatusObserver_SubscribeStatus_Call) Run ¶
func (_c *MockStatusObserver_SubscribeStatus_Call) Run(run func()) *MockStatusObserver_SubscribeStatus_Call
func (*MockStatusObserver_SubscribeStatus_Call) RunAndReturn ¶
func (_c *MockStatusObserver_SubscribeStatus_Call) RunAndReturn(run func() (<-chan executor.Status, func())) *MockStatusObserver_SubscribeStatus_Call
type MockStreamPrompter ¶
MockStreamPrompter is an autogenerated mock type for the StreamPrompter type
func NewMockStreamPrompter ¶
func NewMockStreamPrompter(t interface {
mock.TestingT
Cleanup(func())
}) *MockStreamPrompter
NewMockStreamPrompter creates a new instance of MockStreamPrompter. 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 (*MockStreamPrompter) EXPECT ¶
func (_m *MockStreamPrompter) EXPECT() *MockStreamPrompter_Expecter
func (*MockStreamPrompter) PromptStream ¶
func (_mock *MockStreamPrompter) PromptStream(ctx context.Context, req executor.PromptRequest, cb func(executor.PromptEvent)) error
PromptStream provides a mock function for the type MockStreamPrompter
type MockStreamPrompter_Expecter ¶
type MockStreamPrompter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStreamPrompter_Expecter) PromptStream ¶
func (_e *MockStreamPrompter_Expecter) PromptStream(ctx interface{}, req interface{}, cb interface{}) *MockStreamPrompter_PromptStream_Call
PromptStream is a helper method to define mock.On call
- ctx context.Context
- req executor.PromptRequest
- cb func(executor.PromptEvent)
type MockStreamPrompter_PromptStream_Call ¶
MockStreamPrompter_PromptStream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PromptStream'
func (*MockStreamPrompter_PromptStream_Call) Return ¶
func (_c *MockStreamPrompter_PromptStream_Call) Return(err error) *MockStreamPrompter_PromptStream_Call
func (*MockStreamPrompter_PromptStream_Call) Run ¶
func (_c *MockStreamPrompter_PromptStream_Call) Run(run func(ctx context.Context, req executor.PromptRequest, cb func(executor.PromptEvent))) *MockStreamPrompter_PromptStream_Call
func (*MockStreamPrompter_PromptStream_Call) RunAndReturn ¶
func (_c *MockStreamPrompter_PromptStream_Call) RunAndReturn(run func(ctx context.Context, req executor.PromptRequest, cb func(executor.PromptEvent)) error) *MockStreamPrompter_PromptStream_Call