mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 5 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
}

func (*MockClient) GetWorkspaceSymbols

func (m *MockClient) GetWorkspaceSymbols(ctx context.Context, params protocol.WorkspaceSymbolParams) ([]protocol.SymbolInformation, error)

func (*MockClient) Initialize

func (*MockClient) NotifyDidClose

func (m *MockClient) NotifyDidClose(ctx context.Context, params protocol.DidCloseTextDocumentParams) error

func (*MockClient) NotifyDidOpen

func (m *MockClient) NotifyDidOpen(ctx context.Context, params protocol.DidOpenTextDocumentParams) error

func (*MockClient) NotifyInitialized

func (m *MockClient) NotifyInitialized(ctx context.Context) error

func (*MockClient) Shutdown

func (m *MockClient) Shutdown(ctx context.Context) error

type MockClientPool

type MockClientPool struct {
	mock.Mock
}

func (*MockClientPool) Delete

func (m *MockClientPool) Delete(projectId lsp.ProjectId, languageId lsp.LanguageId)

func (*MockClientPool) DeleteAllForProject

func (m *MockClientPool) DeleteAllForProject(projectId lsp.ProjectId)

func (*MockClientPool) Get

func (m *MockClientPool) Get(projectId lsp.ProjectId, languageId lsp.LanguageId) (lsp.Client, bool)

func (*MockClientPool) GetAllForProject

func (m *MockClientPool) GetAllForProject(projectId lsp.ProjectId) (map[lsp.LanguageId]lsp.Client, bool)

func (*MockClientPool) Set

func (m *MockClientPool) Set(projectId lsp.ProjectId, languageId lsp.LanguageId, client lsp.Client)

type MockLspService

type MockLspService struct {
	mock.Mock
}

func (*MockLspService) CleanupProject

func (m *MockLspService) CleanupProject(ctx context.Context, projectId lsp.ProjectId) error

func (*MockLspService) GetDiagnostics

func (m *MockLspService) GetDiagnostics(ctx context.Context, file model.File) ([]protocol.Diagnostic, error)

func (*MockLspService) GetWorkspaceSymbols

func (m *MockLspService) GetWorkspaceSymbols(ctx context.Context, query string, symbolFilter lsp.SymbolFilter) ([]lsp.SymbolInfo, error)

func (*MockLspService) NotifyDidClose

func (m *MockLspService) NotifyDidClose(ctx context.Context, file model.File) error

func (*MockLspService) NotifyDidOpen

func (m *MockLspService) NotifyDidOpen(ctx context.Context, file model.File) error

func (*MockLspService) StartServer

func (m *MockLspService) StartServer(ctx context.Context, languageId lsp.LanguageId) error

func (*MockLspService) StopServer

func (m *MockLspService) StopServer(ctx context.Context, languageId lsp.LanguageId) error

Jump to

Keyboard shortcuts

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