Documentation
¶
Overview ¶
Package mock_lsp is a generated GoMock package.
Index ¶
- type MockLspService
- func (m *MockLspService) Clients() map[string]*lsp.Client
- func (m *MockLspService) ClientsCh() <-chan *lsp.Client
- func (m *MockLspService) ClientsForFile(filePath string) []*lsp.Client
- func (m *MockLspService) EXPECT() *MockLspServiceMockRecorder
- func (m *MockLspService) ForceShutdown()
- func (m *MockLspService) FormatDiagnostics(filePath string) string
- func (m *MockLspService) Init(ctx context.Context) error
- func (m *MockLspService) NotifyOpenFile(ctx context.Context, filePath string)
- func (m *MockLspService) Shutdown(ctx context.Context) error
- func (m *MockLspService) WaitForDiagnostics(ctx context.Context, filePath string) error
- type MockLspServiceMockRecorder
- func (mr *MockLspServiceMockRecorder) Clients() *gomock.Call
- func (mr *MockLspServiceMockRecorder) ClientsCh() *gomock.Call
- func (mr *MockLspServiceMockRecorder) ClientsForFile(filePath any) *gomock.Call
- func (mr *MockLspServiceMockRecorder) ForceShutdown() *gomock.Call
- func (mr *MockLspServiceMockRecorder) FormatDiagnostics(filePath any) *gomock.Call
- func (mr *MockLspServiceMockRecorder) Init(ctx any) *gomock.Call
- func (mr *MockLspServiceMockRecorder) NotifyOpenFile(ctx, filePath any) *gomock.Call
- func (mr *MockLspServiceMockRecorder) Shutdown(ctx any) *gomock.Call
- func (mr *MockLspServiceMockRecorder) WaitForDiagnostics(ctx, filePath any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLspService ¶
type MockLspService struct {
// contains filtered or unexported fields
}
MockLspService is a mock of LspService interface.
func NewMockLspService ¶
func NewMockLspService(ctrl *gomock.Controller) *MockLspService
NewMockLspService creates a new mock instance.
func (*MockLspService) Clients ¶
func (m *MockLspService) Clients() map[string]*lsp.Client
Clients mocks base method.
func (*MockLspService) ClientsCh ¶
func (m *MockLspService) ClientsCh() <-chan *lsp.Client
ClientsCh mocks base method.
func (*MockLspService) ClientsForFile ¶
func (m *MockLspService) ClientsForFile(filePath string) []*lsp.Client
ClientsForFile mocks base method.
func (*MockLspService) EXPECT ¶
func (m *MockLspService) EXPECT() *MockLspServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLspService) ForceShutdown ¶
func (m *MockLspService) ForceShutdown()
ForceShutdown mocks base method.
func (*MockLspService) FormatDiagnostics ¶
func (m *MockLspService) FormatDiagnostics(filePath string) string
FormatDiagnostics mocks base method.
func (*MockLspService) Init ¶
func (m *MockLspService) Init(ctx context.Context) error
Init mocks base method.
func (*MockLspService) NotifyOpenFile ¶
func (m *MockLspService) NotifyOpenFile(ctx context.Context, filePath string)
NotifyOpenFile mocks base method.
func (*MockLspService) Shutdown ¶
func (m *MockLspService) Shutdown(ctx context.Context) error
Shutdown mocks base method.
func (*MockLspService) WaitForDiagnostics ¶
func (m *MockLspService) WaitForDiagnostics(ctx context.Context, filePath string) error
WaitForDiagnostics mocks base method.
type MockLspServiceMockRecorder ¶
type MockLspServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockLspServiceMockRecorder is the mock recorder for MockLspService.
func (*MockLspServiceMockRecorder) Clients ¶
func (mr *MockLspServiceMockRecorder) Clients() *gomock.Call
Clients indicates an expected call of Clients.
func (*MockLspServiceMockRecorder) ClientsCh ¶
func (mr *MockLspServiceMockRecorder) ClientsCh() *gomock.Call
ClientsCh indicates an expected call of ClientsCh.
func (*MockLspServiceMockRecorder) ClientsForFile ¶
func (mr *MockLspServiceMockRecorder) ClientsForFile(filePath any) *gomock.Call
ClientsForFile indicates an expected call of ClientsForFile.
func (*MockLspServiceMockRecorder) ForceShutdown ¶
func (mr *MockLspServiceMockRecorder) ForceShutdown() *gomock.Call
ForceShutdown indicates an expected call of ForceShutdown.
func (*MockLspServiceMockRecorder) FormatDiagnostics ¶
func (mr *MockLspServiceMockRecorder) FormatDiagnostics(filePath any) *gomock.Call
FormatDiagnostics indicates an expected call of FormatDiagnostics.
func (*MockLspServiceMockRecorder) Init ¶
func (mr *MockLspServiceMockRecorder) Init(ctx any) *gomock.Call
Init indicates an expected call of Init.
func (*MockLspServiceMockRecorder) NotifyOpenFile ¶
func (mr *MockLspServiceMockRecorder) NotifyOpenFile(ctx, filePath any) *gomock.Call
NotifyOpenFile indicates an expected call of NotifyOpenFile.
func (*MockLspServiceMockRecorder) Shutdown ¶
func (mr *MockLspServiceMockRecorder) Shutdown(ctx any) *gomock.Call
Shutdown indicates an expected call of Shutdown.
func (*MockLspServiceMockRecorder) WaitForDiagnostics ¶
func (mr *MockLspServiceMockRecorder) WaitForDiagnostics(ctx, filePath any) *gomock.Call
WaitForDiagnostics indicates an expected call of WaitForDiagnostics.