protocol

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func NewMockClient

func NewMockClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClient

NewMockClient creates a new instance of MockClient. 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 (*MockClient) ApplyEdit

func (_m *MockClient) ApplyEdit(ctx context.Context, params *protocol.ApplyWorkspaceEditParams) (bool, error)

ApplyEdit provides a mock function with given fields: ctx, params

func (*MockClient) Configuration

func (_m *MockClient) Configuration(ctx context.Context, params *protocol.ConfigurationParams) ([]interface{}, error)

Configuration provides a mock function with given fields: ctx, params

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClient_Expecter

func (*MockClient) LogMessage

func (_m *MockClient) LogMessage(ctx context.Context, params *protocol.LogMessageParams) error

LogMessage provides a mock function with given fields: ctx, params

func (*MockClient) Progress

func (_m *MockClient) Progress(ctx context.Context, params *protocol.ProgressParams) error

Progress provides a mock function with given fields: ctx, params

func (*MockClient) PublishDiagnostics

func (_m *MockClient) PublishDiagnostics(ctx context.Context, params *protocol.PublishDiagnosticsParams) error

PublishDiagnostics provides a mock function with given fields: ctx, params

func (*MockClient) RegisterCapability

func (_m *MockClient) RegisterCapability(ctx context.Context, params *protocol.RegistrationParams) error

RegisterCapability provides a mock function with given fields: ctx, params

func (*MockClient) ShowMessage

func (_m *MockClient) ShowMessage(ctx context.Context, params *protocol.ShowMessageParams) error

ShowMessage provides a mock function with given fields: ctx, params

func (*MockClient) ShowMessageRequest

ShowMessageRequest provides a mock function with given fields: ctx, params

func (*MockClient) Telemetry

func (_m *MockClient) Telemetry(ctx context.Context, params interface{}) error

Telemetry provides a mock function with given fields: ctx, params

func (*MockClient) UnregisterCapability

func (_m *MockClient) UnregisterCapability(ctx context.Context, params *protocol.UnregistrationParams) error

UnregisterCapability provides a mock function with given fields: ctx, params

func (*MockClient) WorkDoneProgressCreate

func (_m *MockClient) WorkDoneProgressCreate(ctx context.Context, params *protocol.WorkDoneProgressCreateParams) error

WorkDoneProgressCreate provides a mock function with given fields: ctx, params

func (*MockClient) WorkspaceFolders

func (_m *MockClient) WorkspaceFolders(ctx context.Context) ([]protocol.WorkspaceFolder, error)

WorkspaceFolders provides a mock function with given fields: ctx

type MockClient_ApplyEdit_Call

type MockClient_ApplyEdit_Call struct {
	*mock.Call
}

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

func (*MockClient_ApplyEdit_Call) Return

func (*MockClient_ApplyEdit_Call) Run

func (*MockClient_ApplyEdit_Call) RunAndReturn

type MockClient_Configuration_Call

type MockClient_Configuration_Call struct {
	*mock.Call
}

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

func (*MockClient_Configuration_Call) Return

func (_c *MockClient_Configuration_Call) Return(result []interface{}, err error) *MockClient_Configuration_Call

func (*MockClient_Configuration_Call) Run

func (*MockClient_Configuration_Call) RunAndReturn

type MockClient_Expecter

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

func (*MockClient_Expecter) ApplyEdit

func (_e *MockClient_Expecter) ApplyEdit(ctx interface{}, params interface{}) *MockClient_ApplyEdit_Call

ApplyEdit is a helper method to define mock.On call

  • ctx context.Context
  • params *protocol.ApplyWorkspaceEditParams

func (*MockClient_Expecter) Configuration

func (_e *MockClient_Expecter) Configuration(ctx interface{}, params interface{}) *MockClient_Configuration_Call

Configuration is a helper method to define mock.On call

  • ctx context.Context
  • params *protocol.ConfigurationParams

func (*MockClient_Expecter) LogMessage

func (_e *MockClient_Expecter) LogMessage(ctx interface{}, params interface{}) *MockClient_LogMessage_Call

LogMessage is a helper method to define mock.On call

  • ctx context.Context
  • params *protocol.LogMessageParams

func (*MockClient_Expecter) Progress

func (_e *MockClient_Expecter) Progress(ctx interface{}, params interface{}) *MockClient_Progress_Call

Progress is a helper method to define mock.On call

  • ctx context.Context
  • params *protocol.ProgressParams

func (*MockClient_Expecter) PublishDiagnostics

func (_e *MockClient_Expecter) PublishDiagnostics(ctx interface{}, params interface{}) *MockClient_PublishDiagnostics_Call

PublishDiagnostics is a helper method to define mock.On call

  • ctx context.Context
  • params *protocol.PublishDiagnosticsParams

func (*MockClient_Expecter) RegisterCapability

func (_e *MockClient_Expecter) RegisterCapability(ctx interface{}, params interface{}) *MockClient_RegisterCapability_Call

RegisterCapability is a helper method to define mock.On call

  • ctx context.Context
  • params *protocol.RegistrationParams

func (*MockClient_Expecter) ShowMessage

func (_e *MockClient_Expecter) ShowMessage(ctx interface{}, params interface{}) *MockClient_ShowMessage_Call

ShowMessage is a helper method to define mock.On call

  • ctx context.Context
  • params *protocol.ShowMessageParams

func (*MockClient_Expecter) ShowMessageRequest

func (_e *MockClient_Expecter) ShowMessageRequest(ctx interface{}, params interface{}) *MockClient_ShowMessageRequest_Call

ShowMessageRequest is a helper method to define mock.On call

  • ctx context.Context
  • params *protocol.ShowMessageRequestParams

func (*MockClient_Expecter) Telemetry

func (_e *MockClient_Expecter) Telemetry(ctx interface{}, params interface{}) *MockClient_Telemetry_Call

Telemetry is a helper method to define mock.On call

  • ctx context.Context
  • params interface{}

func (*MockClient_Expecter) UnregisterCapability

func (_e *MockClient_Expecter) UnregisterCapability(ctx interface{}, params interface{}) *MockClient_UnregisterCapability_Call

UnregisterCapability is a helper method to define mock.On call

  • ctx context.Context
  • params *protocol.UnregistrationParams

func (*MockClient_Expecter) WorkDoneProgressCreate

func (_e *MockClient_Expecter) WorkDoneProgressCreate(ctx interface{}, params interface{}) *MockClient_WorkDoneProgressCreate_Call

WorkDoneProgressCreate is a helper method to define mock.On call

  • ctx context.Context
  • params *protocol.WorkDoneProgressCreateParams

func (*MockClient_Expecter) WorkspaceFolders

func (_e *MockClient_Expecter) WorkspaceFolders(ctx interface{}) *MockClient_WorkspaceFolders_Call

WorkspaceFolders is a helper method to define mock.On call

  • ctx context.Context

type MockClient_LogMessage_Call

type MockClient_LogMessage_Call struct {
	*mock.Call
}

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

func (*MockClient_LogMessage_Call) Return

func (*MockClient_LogMessage_Call) Run

func (*MockClient_LogMessage_Call) RunAndReturn

type MockClient_Progress_Call

type MockClient_Progress_Call struct {
	*mock.Call
}

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

func (*MockClient_Progress_Call) Return

func (*MockClient_Progress_Call) Run

func (*MockClient_Progress_Call) RunAndReturn

type MockClient_PublishDiagnostics_Call

type MockClient_PublishDiagnostics_Call struct {
	*mock.Call
}

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

func (*MockClient_PublishDiagnostics_Call) Return

func (*MockClient_PublishDiagnostics_Call) Run

func (*MockClient_PublishDiagnostics_Call) RunAndReturn

type MockClient_RegisterCapability_Call

type MockClient_RegisterCapability_Call struct {
	*mock.Call
}

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

func (*MockClient_RegisterCapability_Call) Return

func (*MockClient_RegisterCapability_Call) Run

func (*MockClient_RegisterCapability_Call) RunAndReturn

type MockClient_ShowMessageRequest_Call

type MockClient_ShowMessageRequest_Call struct {
	*mock.Call
}

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

func (*MockClient_ShowMessageRequest_Call) Return

func (*MockClient_ShowMessageRequest_Call) Run

type MockClient_ShowMessage_Call

type MockClient_ShowMessage_Call struct {
	*mock.Call
}

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

func (*MockClient_ShowMessage_Call) Return

func (*MockClient_ShowMessage_Call) Run

func (*MockClient_ShowMessage_Call) RunAndReturn

type MockClient_Telemetry_Call

type MockClient_Telemetry_Call struct {
	*mock.Call
}

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

func (*MockClient_Telemetry_Call) Return

func (*MockClient_Telemetry_Call) Run

func (_c *MockClient_Telemetry_Call) Run(run func(ctx context.Context, params interface{})) *MockClient_Telemetry_Call

func (*MockClient_Telemetry_Call) RunAndReturn

func (_c *MockClient_Telemetry_Call) RunAndReturn(run func(context.Context, interface{}) error) *MockClient_Telemetry_Call

type MockClient_UnregisterCapability_Call

type MockClient_UnregisterCapability_Call struct {
	*mock.Call
}

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

func (*MockClient_UnregisterCapability_Call) Return

func (*MockClient_UnregisterCapability_Call) Run

func (*MockClient_UnregisterCapability_Call) RunAndReturn

type MockClient_WorkDoneProgressCreate_Call

type MockClient_WorkDoneProgressCreate_Call struct {
	*mock.Call
}

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

func (*MockClient_WorkDoneProgressCreate_Call) Return

func (*MockClient_WorkDoneProgressCreate_Call) Run

type MockClient_WorkspaceFolders_Call

type MockClient_WorkspaceFolders_Call struct {
	*mock.Call
}

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

func (*MockClient_WorkspaceFolders_Call) Return

func (*MockClient_WorkspaceFolders_Call) Run

func (*MockClient_WorkspaceFolders_Call) RunAndReturn

Jump to

Keyboard shortcuts

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