daptest

package
v1.21.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package daptest provides a sample client with utilities for DAP mode testing.

Index

Constants

View Source
const ClosingClient = "Closing client session, but leaving multi-client DAP server at .+:[0-9]+ with debuggee %s\n"
View Source
const ProcessExited = `Process [0-9]+ has exited with status %s\n`

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a debugger service client that uses Debug Adaptor Protocol. It does not (yet?) implement service.Client interface. All client methods are synchronous.

func NewClient

func NewClient(addr string) *Client

NewClient creates a new Client over a TCP connection. Call Close() to close the connection.

func NewClientFromConn

func NewClientFromConn(conn net.Conn) *Client

NewClientFromConn creates a new Client with the given TCP connection. Call Close to close the connection.

func (*Client) AttachRequest

func (c *Client) AttachRequest(arguments map[string]interface{})

AttachRequest sends an 'attach' request with the specified arguments.

func (*Client) BadRequest

func (c *Client) BadRequest()

BadRequest triggers an unmarshal error.

func (*Client) BreakpointLocationsRequest

func (c *Client) BreakpointLocationsRequest()

BreakpointLocationsRequest sends a 'breakpointLocations' request.

func (*Client) CancelRequest

func (c *Client) CancelRequest()

CancelRequest sends a 'cancel' request.

func (*Client) CheckAttachResponse

func (c *Client) CheckAttachResponse(t *testing.T, m dap.Message) *dap.AttachResponse

CheckAttachResponse fails the test if m is not *AttachResponse.

func (*Client) CheckBreakpointEvent

func (c *Client) CheckBreakpointEvent(t *testing.T, m dap.Message) *dap.BreakpointEvent

CheckBreakpointEvent fails the test if m is not *BreakpointEvent.

func (*Client) CheckBreakpointLocationsResponse

func (c *Client) CheckBreakpointLocationsResponse(t *testing.T, m dap.Message) *dap.BreakpointLocationsResponse

CheckBreakpointLocationsResponse fails the test if m is not *BreakpointLocationsResponse.

func (*Client) CheckCancelResponse

func (c *Client) CheckCancelResponse(t *testing.T, m dap.Message) *dap.CancelResponse

CheckCancelResponse fails the test if m is not *CancelResponse.

func (*Client) CheckCapabilitiesEvent

func (c *Client) CheckCapabilitiesEvent(t *testing.T, m dap.Message) *dap.CapabilitiesEvent

CheckCapabilitiesEvent fails the test if m is not *CapabilitiesEvent.

func (*Client) CheckCompletionsResponse

func (c *Client) CheckCompletionsResponse(t *testing.T, m dap.Message) *dap.CompletionsResponse

CheckCompletionsResponse fails the test if m is not *CompletionsResponse.

func (*Client) CheckConfigurationDoneResponse

func (c *Client) CheckConfigurationDoneResponse(t *testing.T, m dap.Message) *dap.ConfigurationDoneResponse

CheckConfigurationDoneResponse fails the test if m is not *ConfigurationDoneResponse.

func (*Client) CheckContinueResponse

func (c *Client) CheckContinueResponse(t *testing.T, m dap.Message) *dap.ContinueResponse

CheckContinueResponse fails the test if m is not *ContinueResponse.

func (*Client) CheckContinuedEvent

func (c *Client) CheckContinuedEvent(t *testing.T, m dap.Message) *dap.ContinuedEvent

CheckContinuedEvent fails the test if m is not *ContinuedEvent.

func (*Client) CheckDataBreakpointInfoResponse

func (c *Client) CheckDataBreakpointInfoResponse(t *testing.T, m dap.Message) *dap.DataBreakpointInfoResponse

CheckDataBreakpointInfoResponse fails the test if m is not *DataBreakpointInfoResponse.

func (*Client) CheckDisassembleResponse

func (c *Client) CheckDisassembleResponse(t *testing.T, m dap.Message) *dap.DisassembleResponse

CheckDisassembleResponse fails the test if m is not *DisassembleResponse.

func (*Client) CheckDisconnectResponse

func (c *Client) CheckDisconnectResponse(t *testing.T, m dap.Message) *dap.DisconnectResponse

CheckDisconnectResponse fails the test if m is not *DisconnectResponse.

func (*Client) CheckErrorResponse

func (c *Client) CheckErrorResponse(t *testing.T, m dap.Message) *dap.ErrorResponse

CheckErrorResponse fails the test if m is not *ErrorResponse.

func (*Client) CheckEvaluateResponse

func (c *Client) CheckEvaluateResponse(t *testing.T, m dap.Message) *dap.EvaluateResponse

CheckEvaluateResponse fails the test if m is not *EvaluateResponse.

func (*Client) CheckExceptionInfoResponse

func (c *Client) CheckExceptionInfoResponse(t *testing.T, m dap.Message) *dap.ExceptionInfoResponse

CheckExceptionInfoResponse fails the test if m is not *ExceptionInfoResponse.

func (*Client) CheckExitedEvent

func (c *Client) CheckExitedEvent(t *testing.T, m dap.Message) *dap.ExitedEvent

CheckExitedEvent fails the test if m is not *ExitedEvent.

func (*Client) CheckGotoResponse

func (c *Client) CheckGotoResponse(t *testing.T, m dap.Message) *dap.GotoResponse

CheckGotoResponse fails the test if m is not *GotoResponse.

func (*Client) CheckGotoTargetsResponse

func (c *Client) CheckGotoTargetsResponse(t *testing.T, m dap.Message) *dap.GotoTargetsResponse

CheckGotoTargetsResponse fails the test if m is not *GotoTargetsResponse.

func (*Client) CheckInitializeResponse

func (c *Client) CheckInitializeResponse(t *testing.T, m dap.Message) *dap.InitializeResponse

CheckInitializeResponse fails the test if m is not *InitializeResponse.

func (*Client) CheckInitializedEvent

func (c *Client) CheckInitializedEvent(t *testing.T, m dap.Message) *dap.InitializedEvent

CheckInitializedEvent fails the test if m is not *InitializedEvent.

func (*Client) CheckInvalidatedEvent

func (c *Client) CheckInvalidatedEvent(t *testing.T, m dap.Message) *dap.InvalidatedEvent

CheckInvalidatedEvent fails the test if m is not *InvalidatedEvent.

func (*Client) CheckLaunchResponse

func (c *Client) CheckLaunchResponse(t *testing.T, m dap.Message) *dap.LaunchResponse

CheckLaunchResponse fails the test if m is not *LaunchResponse.

func (*Client) CheckLoadedSourceEvent

func (c *Client) CheckLoadedSourceEvent(t *testing.T, m dap.Message) *dap.LoadedSourceEvent

CheckLoadedSourceEvent fails the test if m is not *LoadedSourceEvent.

func (*Client) CheckLoadedSourcesResponse

func (c *Client) CheckLoadedSourcesResponse(t *testing.T, m dap.Message) *dap.LoadedSourcesResponse

CheckLoadedSourcesResponse fails the test if m is not *LoadedSourcesResponse.

func (*Client) CheckMemoryEvent

func (c *Client) CheckMemoryEvent(t *testing.T, m dap.Message) *dap.MemoryEvent

CheckMemoryEvent fails the test if m is not *MemoryEvent.

func (*Client) CheckModuleEvent

func (c *Client) CheckModuleEvent(t *testing.T, m dap.Message) *dap.ModuleEvent

CheckModuleEvent fails the test if m is not *ModuleEvent.

func (*Client) CheckModulesResponse

func (c *Client) CheckModulesResponse(t *testing.T, m dap.Message) *dap.ModulesResponse

CheckModulesResponse fails the test if m is not *ModulesResponse.

func (*Client) CheckNextResponse

func (c *Client) CheckNextResponse(t *testing.T, m dap.Message) *dap.NextResponse

CheckNextResponse fails the test if m is not *NextResponse.

func (*Client) CheckOutputEvent

func (c *Client) CheckOutputEvent(t *testing.T, m dap.Message) *dap.OutputEvent

CheckOutputEvent fails the test if m is not *OutputEvent.

func (*Client) CheckPauseResponse

func (c *Client) CheckPauseResponse(t *testing.T, m dap.Message) *dap.PauseResponse

CheckPauseResponse fails the test if m is not *PauseResponse.

func (*Client) CheckProcessEvent

func (c *Client) CheckProcessEvent(t *testing.T, m dap.Message) *dap.ProcessEvent

CheckProcessEvent fails the test if m is not *ProcessEvent.

func (*Client) CheckProgressEndEvent

func (c *Client) CheckProgressEndEvent(t *testing.T, m dap.Message) *dap.ProgressEndEvent

CheckProgressEndEvent fails the test if m is not *ProgressEndEvent.

func (*Client) CheckProgressStartEvent

func (c *Client) CheckProgressStartEvent(t *testing.T, m dap.Message) *dap.ProgressStartEvent

CheckProgressStartEvent fails the test if m is not *ProgressStartEvent.

func (*Client) CheckProgressUpdateEvent

func (c *Client) CheckProgressUpdateEvent(t *testing.T, m dap.Message) *dap.ProgressUpdateEvent

CheckProgressUpdateEvent fails the test if m is not *ProgressUpdateEvent.

func (*Client) CheckReadMemoryResponse

func (c *Client) CheckReadMemoryResponse(t *testing.T, m dap.Message) *dap.ReadMemoryResponse

CheckReadMemoryResponse fails the test if m is not *ReadMemoryResponse.

func (*Client) CheckRestartFrameResponse

func (c *Client) CheckRestartFrameResponse(t *testing.T, m dap.Message) *dap.RestartFrameResponse

CheckRestartFrameResponse fails the test if m is not *RestartFrameResponse.

func (*Client) CheckRestartResponse

func (c *Client) CheckRestartResponse(t *testing.T, m dap.Message) *dap.RestartResponse

CheckRestartResponse fails the test if m is not *RestartResponse.

func (*Client) CheckReverseContinueResponse

func (c *Client) CheckReverseContinueResponse(t *testing.T, m dap.Message) *dap.ReverseContinueResponse

CheckReverseContinueResponse fails the test if m is not *ReverseContinueResponse.

func (*Client) CheckRunInTerminalResponse

func (c *Client) CheckRunInTerminalResponse(t *testing.T, m dap.Message) *dap.RunInTerminalResponse

CheckRunInTerminalResponse fails the test if m is not *RunInTerminalResponse.

func (*Client) CheckScopesResponse

func (c *Client) CheckScopesResponse(t *testing.T, m dap.Message) *dap.ScopesResponse

CheckScopesResponse fails the test if m is not *ScopesResponse.

func (*Client) CheckSetBreakpointsResponse

func (c *Client) CheckSetBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetBreakpointsResponse

CheckSetBreakpointsResponse fails the test if m is not *SetBreakpointsResponse.

func (*Client) CheckSetDataBreakpointsResponse

func (c *Client) CheckSetDataBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetDataBreakpointsResponse

CheckSetDataBreakpointsResponse fails the test if m is not *SetDataBreakpointsResponse.

func (*Client) CheckSetExceptionBreakpointsResponse

func (c *Client) CheckSetExceptionBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetExceptionBreakpointsResponse

CheckSetExceptionBreakpointsResponse fails the test if m is not *SetExceptionBreakpointsResponse.

func (*Client) CheckSetExpressionResponse

func (c *Client) CheckSetExpressionResponse(t *testing.T, m dap.Message) *dap.SetExpressionResponse

CheckSetExpressionResponse fails the test if m is not *SetExpressionResponse.

func (*Client) CheckSetFunctionBreakpointsResponse

func (c *Client) CheckSetFunctionBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetFunctionBreakpointsResponse

CheckSetFunctionBreakpointsResponse fails the test if m is not *SetFunctionBreakpointsResponse.

func (*Client) CheckSetInstructionBreakpointsResponse

func (c *Client) CheckSetInstructionBreakpointsResponse(t *testing.T, m dap.Message) *dap.SetInstructionBreakpointsResponse

CheckSetInstructionBreakpointsResponse fails the test if m is not *SetInstructionBreakpointsResponse.

func (*Client) CheckSetVariableResponse

func (c *Client) CheckSetVariableResponse(t *testing.T, m dap.Message) *dap.SetVariableResponse

CheckSetVariableResponse fails the test if m is not *SetVariableResponse.

func (*Client) CheckSourceResponse

func (c *Client) CheckSourceResponse(t *testing.T, m dap.Message) *dap.SourceResponse

CheckSourceResponse fails the test if m is not *SourceResponse.

func (*Client) CheckStackTraceResponse

func (c *Client) CheckStackTraceResponse(t *testing.T, m dap.Message) *dap.StackTraceResponse

CheckStackTraceResponse fails the test if m is not *StackTraceResponse.

func (*Client) CheckStepBackResponse

func (c *Client) CheckStepBackResponse(t *testing.T, m dap.Message) *dap.StepBackResponse

CheckStepBackResponse fails the test if m is not *StepBackResponse.

func (*Client) CheckStepInResponse

func (c *Client) CheckStepInResponse(t *testing.T, m dap.Message) *dap.StepInResponse

CheckStepInResponse fails the test if m is not *StepInResponse.

func (*Client) CheckStepInTargetsResponse

func (c *Client) CheckStepInTargetsResponse(t *testing.T, m dap.Message) *dap.StepInTargetsResponse

CheckStepInTargetsResponse fails the test if m is not *StepInTargetsResponse.

func (*Client) CheckStepOutResponse

func (c *Client) CheckStepOutResponse(t *testing.T, m dap.Message) *dap.StepOutResponse

CheckStepOutResponse fails the test if m is not *StepOutResponse.

func (*Client) CheckStopLocation

func (c *Client) CheckStopLocation(t *testing.T, thread int, name string, line int)

func (*Client) CheckStoppedEvent

func (c *Client) CheckStoppedEvent(t *testing.T, m dap.Message) *dap.StoppedEvent

CheckStoppedEvent fails the test if m is not *StoppedEvent.

func (*Client) CheckTerminateResponse

func (c *Client) CheckTerminateResponse(t *testing.T, m dap.Message) *dap.TerminateResponse

CheckTerminateResponse fails the test if m is not *TerminateResponse.

func (*Client) CheckTerminateThreadsResponse

func (c *Client) CheckTerminateThreadsResponse(t *testing.T, m dap.Message) *dap.TerminateThreadsResponse

CheckTerminateThreadsResponse fails the test if m is not *TerminateThreadsResponse.

func (*Client) CheckTerminatedEvent

func (c *Client) CheckTerminatedEvent(t *testing.T, m dap.Message) *dap.TerminatedEvent

CheckTerminatedEvent fails the test if m is not *TerminatedEvent.

func (*Client) CheckThreadEvent

func (c *Client) CheckThreadEvent(t *testing.T, m dap.Message) *dap.ThreadEvent

CheckThreadEvent fails the test if m is not *ThreadEvent.

func (*Client) CheckThreadsResponse

func (c *Client) CheckThreadsResponse(t *testing.T, m dap.Message) *dap.ThreadsResponse

CheckThreadsResponse fails the test if m is not *ThreadsResponse.

func (*Client) CheckVariablesResponse

func (c *Client) CheckVariablesResponse(t *testing.T, m dap.Message) *dap.VariablesResponse

CheckVariablesResponse fails the test if m is not *VariablesResponse.

func (*Client) CheckWriteMemoryResponse

func (c *Client) CheckWriteMemoryResponse(t *testing.T, m dap.Message) *dap.WriteMemoryResponse

CheckWriteMemoryResponse fails the test if m is not *WriteMemoryResponse.

func (*Client) Close

func (c *Client) Close()

Close closes the client connection.

func (*Client) CompletionsRequest

func (c *Client) CompletionsRequest()

CompletionsRequest sends a 'completions' request.

func (*Client) ConfigurationDoneRequest

func (c *Client) ConfigurationDoneRequest()

ConfigurationDoneRequest sends a 'configurationDone' request.

func (*Client) ContinueRequest

func (c *Client) ContinueRequest(thread int)

ContinueRequest sends a 'continue' request.

func (*Client) DataBreakpointInfoRequest

func (c *Client) DataBreakpointInfoRequest()

DataBreakpointInfoRequest sends a 'dataBreakpointInfo' request.

func (*Client) DisassembleRequest

func (c *Client) DisassembleRequest(memoryReference string, instructionOffset, instructionCount int)

DisassembleRequest sends a 'disassemble' request.

func (*Client) DisconnectRequest

func (c *Client) DisconnectRequest()

DisconnectRequest sends a 'disconnect' request.

func (*Client) DisconnectRequestWithKillOption

func (c *Client) DisconnectRequestWithKillOption(kill bool)

DisconnectRequestWithKillOption sends a 'disconnect' request with an option to specify `terminateDebuggee`.

func (*Client) EvaluateRequest

func (c *Client) EvaluateRequest(expr string, fid int, context string)

EvaluateRequest sends a 'evaluate' request.

func (*Client) ExceptionInfoRequest

func (c *Client) ExceptionInfoRequest(threadID int)

ExceptionInfoRequest sends a 'exceptionInfo' request.

func (*Client) ExpectAttachResponse

func (c *Client) ExpectAttachResponse(t *testing.T) *dap.AttachResponse

ExpectAttachResponse reads a protocol message from the connection and fails the test if the read message is not *AttachResponse.

func (*Client) ExpectBreakpointEvent

func (c *Client) ExpectBreakpointEvent(t *testing.T) *dap.BreakpointEvent

ExpectBreakpointEvent reads a protocol message from the connection and fails the test if the read message is not *BreakpointEvent.

func (*Client) ExpectBreakpointLocationsResponse

func (c *Client) ExpectBreakpointLocationsResponse(t *testing.T) *dap.BreakpointLocationsResponse

ExpectBreakpointLocationsResponse reads a protocol message from the connection and fails the test if the read message is not *BreakpointLocationsResponse.

func (*Client) ExpectCancelResponse

func (c *Client) ExpectCancelResponse(t *testing.T) *dap.CancelResponse

ExpectCancelResponse reads a protocol message from the connection and fails the test if the read message is not *CancelResponse.

func (*Client) ExpectCapabilitiesEvent

func (c *Client) ExpectCapabilitiesEvent(t *testing.T) *dap.CapabilitiesEvent

ExpectCapabilitiesEvent reads a protocol message from the connection and fails the test if the read message is not *CapabilitiesEvent.

func (*Client) ExpectCapabilitiesEventSupportTerminateDebuggee

func (c *Client) ExpectCapabilitiesEventSupportTerminateDebuggee(t *testing.T) *dap.CapabilitiesEvent

func (*Client) ExpectCompletionsResponse

func (c *Client) ExpectCompletionsResponse(t *testing.T) *dap.CompletionsResponse

ExpectCompletionsResponse reads a protocol message from the connection and fails the test if the read message is not *CompletionsResponse.

func (*Client) ExpectConfigurationDoneResponse

func (c *Client) ExpectConfigurationDoneResponse(t *testing.T) *dap.ConfigurationDoneResponse

ExpectConfigurationDoneResponse reads a protocol message from the connection and fails the test if the read message is not *ConfigurationDoneResponse.

func (*Client) ExpectContinueResponse

func (c *Client) ExpectContinueResponse(t *testing.T) *dap.ContinueResponse

ExpectContinueResponse reads a protocol message from the connection and fails the test if the read message is not *ContinueResponse.

func (*Client) ExpectContinuedEvent

func (c *Client) ExpectContinuedEvent(t *testing.T) *dap.ContinuedEvent

ExpectContinuedEvent reads a protocol message from the connection and fails the test if the read message is not *ContinuedEvent.

func (*Client) ExpectDataBreakpointInfoResponse

func (c *Client) ExpectDataBreakpointInfoResponse(t *testing.T) *dap.DataBreakpointInfoResponse

ExpectDataBreakpointInfoResponse reads a protocol message from the connection and fails the test if the read message is not *DataBreakpointInfoResponse.

func (*Client) ExpectDisassembleResponse

func (c *Client) ExpectDisassembleResponse(t *testing.T) *dap.DisassembleResponse

ExpectDisassembleResponse reads a protocol message from the connection and fails the test if the read message is not *DisassembleResponse.

func (*Client) ExpectDisconnectResponse

func (c *Client) ExpectDisconnectResponse(t *testing.T) *dap.DisconnectResponse

ExpectDisconnectResponse reads a protocol message from the connection and fails the test if the read message is not *DisconnectResponse.

func (*Client) ExpectErrorResponse

func (c *Client) ExpectErrorResponse(t *testing.T) *dap.ErrorResponse

ExpectErrorResponse reads a protocol message from the connection and fails the test if the read message is not *ErrorResponse.

func (*Client) ExpectErrorResponseWith

func (c *Client) ExpectErrorResponseWith(t *testing.T, id int, message string, showUser bool) *dap.ErrorResponse

func (*Client) ExpectEvaluateResponse

func (c *Client) ExpectEvaluateResponse(t *testing.T) *dap.EvaluateResponse

ExpectEvaluateResponse reads a protocol message from the connection and fails the test if the read message is not *EvaluateResponse.

func (*Client) ExpectExceptionInfoResponse

func (c *Client) ExpectExceptionInfoResponse(t *testing.T) *dap.ExceptionInfoResponse

ExpectExceptionInfoResponse reads a protocol message from the connection and fails the test if the read message is not *ExceptionInfoResponse.

func (*Client) ExpectExitedEvent

func (c *Client) ExpectExitedEvent(t *testing.T) *dap.ExitedEvent

ExpectExitedEvent reads a protocol message from the connection and fails the test if the read message is not *ExitedEvent.

func (*Client) ExpectGotoResponse

func (c *Client) ExpectGotoResponse(t *testing.T) *dap.GotoResponse

ExpectGotoResponse reads a protocol message from the connection and fails the test if the read message is not *GotoResponse.

func (*Client) ExpectGotoTargetsResponse

func (c *Client) ExpectGotoTargetsResponse(t *testing.T) *dap.GotoTargetsResponse

ExpectGotoTargetsResponse reads a protocol message from the connection and fails the test if the read message is not *GotoTargetsResponse.

func (*Client) ExpectInitializeResponse

func (c *Client) ExpectInitializeResponse(t *testing.T) *dap.InitializeResponse

ExpectInitializeResponse reads a protocol message from the connection and fails the test if the read message is not *InitializeResponse.

func (*Client) ExpectInitializeResponseAndCapabilities

func (c *Client) ExpectInitializeResponseAndCapabilities(t *testing.T) *dap.InitializeResponse

func (*Client) ExpectInitializedEvent

func (c *Client) ExpectInitializedEvent(t *testing.T) *dap.InitializedEvent

ExpectInitializedEvent reads a protocol message from the connection and fails the test if the read message is not *InitializedEvent.

func (*Client) ExpectInvalidatedEvent

func (c *Client) ExpectInvalidatedEvent(t *testing.T) *dap.InvalidatedEvent

ExpectInvalidatedEvent reads a protocol message from the connection and fails the test if the read message is not *InvalidatedEvent.

func (*Client) ExpectInvisibleErrorResponse

func (c *Client) ExpectInvisibleErrorResponse(t *testing.T) *dap.ErrorResponse

func (*Client) ExpectLaunchResponse

func (c *Client) ExpectLaunchResponse(t *testing.T) *dap.LaunchResponse

ExpectLaunchResponse reads a protocol message from the connection and fails the test if the read message is not *LaunchResponse.

func (*Client) ExpectLoadedSourceEvent

func (c *Client) ExpectLoadedSourceEvent(t *testing.T) *dap.LoadedSourceEvent

ExpectLoadedSourceEvent reads a protocol message from the connection and fails the test if the read message is not *LoadedSourceEvent.

func (*Client) ExpectLoadedSourcesResponse

func (c *Client) ExpectLoadedSourcesResponse(t *testing.T) *dap.LoadedSourcesResponse

ExpectLoadedSourcesResponse reads a protocol message from the connection and fails the test if the read message is not *LoadedSourcesResponse.

func (*Client) ExpectMemoryEvent

func (c *Client) ExpectMemoryEvent(t *testing.T) *dap.MemoryEvent

ExpectMemoryEvent reads a protocol message from the connection and fails the test if the read message is not *MemoryEvent.

func (*Client) ExpectMessage

func (c *Client) ExpectMessage(t *testing.T) dap.Message

func (*Client) ExpectModuleEvent

func (c *Client) ExpectModuleEvent(t *testing.T) *dap.ModuleEvent

ExpectModuleEvent reads a protocol message from the connection and fails the test if the read message is not *ModuleEvent.

func (*Client) ExpectModulesResponse

func (c *Client) ExpectModulesResponse(t *testing.T) *dap.ModulesResponse

ExpectModulesResponse reads a protocol message from the connection and fails the test if the read message is not *ModulesResponse.

func (*Client) ExpectNextResponse

func (c *Client) ExpectNextResponse(t *testing.T) *dap.NextResponse

ExpectNextResponse reads a protocol message from the connection and fails the test if the read message is not *NextResponse.

func (*Client) ExpectNotYetImplementedErrorResponse

func (c *Client) ExpectNotYetImplementedErrorResponse(t *testing.T) *dap.ErrorResponse

func (*Client) ExpectOutputEvent

func (c *Client) ExpectOutputEvent(t *testing.T) *dap.OutputEvent

ExpectOutputEvent reads a protocol message from the connection and fails the test if the read message is not *OutputEvent.

func (*Client) ExpectOutputEventClosingClient

func (c *Client) ExpectOutputEventClosingClient(t *testing.T, status string) *dap.OutputEvent

func (*Client) ExpectOutputEventDetaching

func (c *Client) ExpectOutputEventDetaching(t *testing.T) *dap.OutputEvent

func (*Client) ExpectOutputEventDetachingKill

func (c *Client) ExpectOutputEventDetachingKill(t *testing.T) *dap.OutputEvent

func (*Client) ExpectOutputEventDetachingNoKill

func (c *Client) ExpectOutputEventDetachingNoKill(t *testing.T) *dap.OutputEvent

func (*Client) ExpectOutputEventProcessExited

func (c *Client) ExpectOutputEventProcessExited(t *testing.T, status int) *dap.OutputEvent

func (*Client) ExpectOutputEventProcessExitedAnyStatus

func (c *Client) ExpectOutputEventProcessExitedAnyStatus(t *testing.T) *dap.OutputEvent

func (*Client) ExpectOutputEventRegex

func (c *Client) ExpectOutputEventRegex(t *testing.T, want string) *dap.OutputEvent

func (*Client) ExpectOutputEventTerminating

func (c *Client) ExpectOutputEventTerminating(t *testing.T) *dap.OutputEvent

func (*Client) ExpectPauseResponse

func (c *Client) ExpectPauseResponse(t *testing.T) *dap.PauseResponse

ExpectPauseResponse reads a protocol message from the connection and fails the test if the read message is not *PauseResponse.

func (*Client) ExpectProcessEvent

func (c *Client) ExpectProcessEvent(t *testing.T) *dap.ProcessEvent

ExpectProcessEvent reads a protocol message from the connection and fails the test if the read message is not *ProcessEvent.

func (*Client) ExpectProgressEndEvent

func (c *Client) ExpectProgressEndEvent(t *testing.T) *dap.ProgressEndEvent

ExpectProgressEndEvent reads a protocol message from the connection and fails the test if the read message is not *ProgressEndEvent.

func (*Client) ExpectProgressStartEvent

func (c *Client) ExpectProgressStartEvent(t *testing.T) *dap.ProgressStartEvent

ExpectProgressStartEvent reads a protocol message from the connection and fails the test if the read message is not *ProgressStartEvent.

func (*Client) ExpectProgressUpdateEvent

func (c *Client) ExpectProgressUpdateEvent(t *testing.T) *dap.ProgressUpdateEvent

ExpectProgressUpdateEvent reads a protocol message from the connection and fails the test if the read message is not *ProgressUpdateEvent.

func (*Client) ExpectReadMemoryResponse

func (c *Client) ExpectReadMemoryResponse(t *testing.T) *dap.ReadMemoryResponse

ExpectReadMemoryResponse reads a protocol message from the connection and fails the test if the read message is not *ReadMemoryResponse.

func (*Client) ExpectRestartFrameResponse

func (c *Client) ExpectRestartFrameResponse(t *testing.T) *dap.RestartFrameResponse

ExpectRestartFrameResponse reads a protocol message from the connection and fails the test if the read message is not *RestartFrameResponse.

func (*Client) ExpectRestartResponse

func (c *Client) ExpectRestartResponse(t *testing.T) *dap.RestartResponse

ExpectRestartResponse reads a protocol message from the connection and fails the test if the read message is not *RestartResponse.

func (*Client) ExpectReverseContinueResponse

func (c *Client) ExpectReverseContinueResponse(t *testing.T) *dap.ReverseContinueResponse

ExpectReverseContinueResponse reads a protocol message from the connection and fails the test if the read message is not *ReverseContinueResponse.

func (*Client) ExpectRunInTerminalResponse

func (c *Client) ExpectRunInTerminalResponse(t *testing.T) *dap.RunInTerminalResponse

ExpectRunInTerminalResponse reads a protocol message from the connection and fails the test if the read message is not *RunInTerminalResponse.

func (*Client) ExpectScopesResponse

func (c *Client) ExpectScopesResponse(t *testing.T) *dap.ScopesResponse

ExpectScopesResponse reads a protocol message from the connection and fails the test if the read message is not *ScopesResponse.

func (*Client) ExpectSetBreakpointsResponse

func (c *Client) ExpectSetBreakpointsResponse(t *testing.T) *dap.SetBreakpointsResponse

ExpectSetBreakpointsResponse reads a protocol message from the connection and fails the test if the read message is not *SetBreakpointsResponse.

func (*Client) ExpectSetDataBreakpointsResponse

func (c *Client) ExpectSetDataBreakpointsResponse(t *testing.T) *dap.SetDataBreakpointsResponse

ExpectSetDataBreakpointsResponse reads a protocol message from the connection and fails the test if the read message is not *SetDataBreakpointsResponse.

func (*Client) ExpectSetExceptionBreakpointsResponse

func (c *Client) ExpectSetExceptionBreakpointsResponse(t *testing.T) *dap.SetExceptionBreakpointsResponse

ExpectSetExceptionBreakpointsResponse reads a protocol message from the connection and fails the test if the read message is not *SetExceptionBreakpointsResponse.

func (*Client) ExpectSetExpressionResponse

func (c *Client) ExpectSetExpressionResponse(t *testing.T) *dap.SetExpressionResponse

ExpectSetExpressionResponse reads a protocol message from the connection and fails the test if the read message is not *SetExpressionResponse.

func (*Client) ExpectSetFunctionBreakpointsResponse

func (c *Client) ExpectSetFunctionBreakpointsResponse(t *testing.T) *dap.SetFunctionBreakpointsResponse

ExpectSetFunctionBreakpointsResponse reads a protocol message from the connection and fails the test if the read message is not *SetFunctionBreakpointsResponse.

func (*Client) ExpectSetInstructionBreakpointsResponse

func (c *Client) ExpectSetInstructionBreakpointsResponse(t *testing.T) *dap.SetInstructionBreakpointsResponse

ExpectSetInstructionBreakpointsResponse reads a protocol message from the connection and fails the test if the read message is not *SetInstructionBreakpointsResponse.

func (*Client) ExpectSetVariableResponse

func (c *Client) ExpectSetVariableResponse(t *testing.T) *dap.SetVariableResponse

ExpectSetVariableResponse reads a protocol message from the connection and fails the test if the read message is not *SetVariableResponse.

func (*Client) ExpectSourceResponse

func (c *Client) ExpectSourceResponse(t *testing.T) *dap.SourceResponse

ExpectSourceResponse reads a protocol message from the connection and fails the test if the read message is not *SourceResponse.

func (*Client) ExpectStackTraceResponse

func (c *Client) ExpectStackTraceResponse(t *testing.T) *dap.StackTraceResponse

ExpectStackTraceResponse reads a protocol message from the connection and fails the test if the read message is not *StackTraceResponse.

func (*Client) ExpectStepBackResponse

func (c *Client) ExpectStepBackResponse(t *testing.T) *dap.StepBackResponse

ExpectStepBackResponse reads a protocol message from the connection and fails the test if the read message is not *StepBackResponse.

func (*Client) ExpectStepInResponse

func (c *Client) ExpectStepInResponse(t *testing.T) *dap.StepInResponse

ExpectStepInResponse reads a protocol message from the connection and fails the test if the read message is not *StepInResponse.

func (*Client) ExpectStepInTargetsResponse

func (c *Client) ExpectStepInTargetsResponse(t *testing.T) *dap.StepInTargetsResponse

ExpectStepInTargetsResponse reads a protocol message from the connection and fails the test if the read message is not *StepInTargetsResponse.

func (*Client) ExpectStepOutResponse

func (c *Client) ExpectStepOutResponse(t *testing.T) *dap.StepOutResponse

ExpectStepOutResponse reads a protocol message from the connection and fails the test if the read message is not *StepOutResponse.

func (*Client) ExpectStoppedEvent

func (c *Client) ExpectStoppedEvent(t *testing.T) *dap.StoppedEvent

ExpectStoppedEvent reads a protocol message from the connection and fails the test if the read message is not *StoppedEvent.

func (*Client) ExpectTerminateResponse

func (c *Client) ExpectTerminateResponse(t *testing.T) *dap.TerminateResponse

ExpectTerminateResponse reads a protocol message from the connection and fails the test if the read message is not *TerminateResponse.

func (*Client) ExpectTerminateThreadsResponse

func (c *Client) ExpectTerminateThreadsResponse(t *testing.T) *dap.TerminateThreadsResponse

ExpectTerminateThreadsResponse reads a protocol message from the connection and fails the test if the read message is not *TerminateThreadsResponse.

func (*Client) ExpectTerminatedEvent

func (c *Client) ExpectTerminatedEvent(t *testing.T) *dap.TerminatedEvent

ExpectTerminatedEvent reads a protocol message from the connection and fails the test if the read message is not *TerminatedEvent.

func (*Client) ExpectThreadEvent

func (c *Client) ExpectThreadEvent(t *testing.T) *dap.ThreadEvent

ExpectThreadEvent reads a protocol message from the connection and fails the test if the read message is not *ThreadEvent.

func (*Client) ExpectThreadsResponse

func (c *Client) ExpectThreadsResponse(t *testing.T) *dap.ThreadsResponse

ExpectThreadsResponse reads a protocol message from the connection and fails the test if the read message is not *ThreadsResponse.

func (*Client) ExpectUnsupportedCommandErrorResponse

func (c *Client) ExpectUnsupportedCommandErrorResponse(t *testing.T) *dap.ErrorResponse

func (*Client) ExpectVariablesResponse

func (c *Client) ExpectVariablesResponse(t *testing.T) *dap.VariablesResponse

ExpectVariablesResponse reads a protocol message from the connection and fails the test if the read message is not *VariablesResponse.

func (*Client) ExpectVisibleErrorResponse

func (c *Client) ExpectVisibleErrorResponse(t *testing.T) *dap.ErrorResponse

func (*Client) ExpectWriteMemoryResponse

func (c *Client) ExpectWriteMemoryResponse(t *testing.T) *dap.WriteMemoryResponse

ExpectWriteMemoryResponse reads a protocol message from the connection and fails the test if the read message is not *WriteMemoryResponse.

func (*Client) GotoRequest

func (c *Client) GotoRequest()

GotoRequest sends a 'goto' request.

func (*Client) GotoTargetsRequest

func (c *Client) GotoTargetsRequest()

GotoTargetsRequest sends a 'gotoTargets' request.

func (*Client) IndexedVariablesRequest

func (c *Client) IndexedVariablesRequest(variablesReference, start, count int)

IndexedVariablesRequest sends a 'variables' request.

func (*Client) InitializeRequest

func (c *Client) InitializeRequest()

InitializeRequest sends an 'initialize' request.

func (*Client) InitializeRequestWithArgs

func (c *Client) InitializeRequestWithArgs(args dap.InitializeRequestArguments)

InitializeRequestWithArgs sends an 'initialize' request with specified arguments.

func (*Client) KnownEvent

func (c *Client) KnownEvent()

KnownEvent passes decode checks, but delve has no 'case' to handle it. This behaves the same way a new request type added to go-dap, but not to delve.

func (*Client) LaunchRequest

func (c *Client) LaunchRequest(mode, program string, stopOnEntry bool)

LaunchRequest sends a 'launch' request with the specified args.

func (*Client) LaunchRequestWithArgs

func (c *Client) LaunchRequestWithArgs(arguments map[string]interface{})

LaunchRequestWithArgs takes a map of untyped implementation-specific arguments to send a 'launch' request. This version can be used to test for values of unexpected types or unspecified values.

func (*Client) LoadedSourcesRequest

func (c *Client) LoadedSourcesRequest()

LoadedSourcesRequest sends a 'loadedSources' request.

func (*Client) ModulesRequest

func (c *Client) ModulesRequest()

ModulesRequest sends a 'modules' request.

func (*Client) NamedVariablesRequest

func (c *Client) NamedVariablesRequest(variablesReference int)

NamedVariablesRequest sends a 'variables' request.

func (*Client) NextInstructionRequest

func (c *Client) NextInstructionRequest(thread int)

NextInstructionRequest sends a 'next' request with granularity 'instruction'.

func (*Client) NextRequest

func (c *Client) NextRequest(thread int)

NextRequest sends a 'next' request.

func (*Client) PauseRequest

func (c *Client) PauseRequest(threadId int)

PauseRequest sends a 'pause' request.

func (*Client) ReadMemoryRequest

func (c *Client) ReadMemoryRequest()

ReadMemoryRequest sends a 'readMemory' request.

func (*Client) ReadMessage

func (c *Client) ReadMessage() (dap.Message, error)

func (*Client) RestartFrameRequest

func (c *Client) RestartFrameRequest()

RestartFrameRequest sends a 'restartFrame' request.

func (*Client) RestartRequest

func (c *Client) RestartRequest()

RestartRequest sends a 'restart' request.

func (*Client) ReverseContinueRequest

func (c *Client) ReverseContinueRequest()

ReverseContinueRequest sends a 'reverseContinue' request.

func (*Client) ScopesRequest

func (c *Client) ScopesRequest(frameID int)

ScopesRequest sends a 'scopes' request.

func (*Client) SetBreakpointsRequest

func (c *Client) SetBreakpointsRequest(file string, lines []int)

SetBreakpointsRequest sends a 'setBreakpoints' request.

func (*Client) SetBreakpointsRequestWithArgs

func (c *Client) SetBreakpointsRequestWithArgs(file string, lines []int, conditions, hitConditions, logMessages map[int]string)

SetBreakpointsRequestWithArgs sends a 'setBreakpoints' request with an option to specify conditions, hit conditions, and log messages.

func (*Client) SetDataBreakpointsRequest

func (c *Client) SetDataBreakpointsRequest()

SetDataBreakpointsRequest sends a 'setDataBreakpoints' request.

func (*Client) SetExceptionBreakpointsRequest

func (c *Client) SetExceptionBreakpointsRequest()

SetExceptionBreakpointsRequest sends a 'setExceptionBreakpoints' request.

func (*Client) SetExpressionRequest

func (c *Client) SetExpressionRequest()

SetExpressionRequest sends a 'setExpression' request.

func (*Client) SetFunctionBreakpointsRequest

func (c *Client) SetFunctionBreakpointsRequest(breakpoints []dap.FunctionBreakpoint)

SetFunctionBreakpointsRequest sends a 'setFunctionBreakpoints' request.

func (*Client) SetInstructionBreakpointsRequest

func (c *Client) SetInstructionBreakpointsRequest(breakpoints []dap.InstructionBreakpoint)

SetInstructionBreakpointsRequest sends a 'setInstructionBreakpoints' request.

func (*Client) SetVariableRequest

func (c *Client) SetVariableRequest(variablesRef int, name, value string)

SetVariableRequest sends a 'setVariable' request.

func (*Client) SourceRequest

func (c *Client) SourceRequest()

SourceRequest sends a 'source' request.

func (*Client) StackTraceRequest

func (c *Client) StackTraceRequest(threadID, startFrame, levels int)

StackTraceRequest sends a 'stackTrace' request.

func (*Client) StepBackRequest

func (c *Client) StepBackRequest()

StepBackRequest sends a 'stepBack' request.

func (*Client) StepInInstructionRequest

func (c *Client) StepInInstructionRequest(thread int)

StepInInstructionRequest sends a 'stepIn' request with granularity 'instruction'.

func (*Client) StepInRequest

func (c *Client) StepInRequest(thread int)

StepInRequest sends a 'stepIn' request.

func (*Client) StepInTargetsRequest

func (c *Client) StepInTargetsRequest()

StepInTargetsRequest sends a 'stepInTargets' request.

func (*Client) StepOutInstructionRequest

func (c *Client) StepOutInstructionRequest(thread int)

StepOutInstructionRequest sends a 'stepOut' request with granularity 'instruction'.

func (*Client) StepOutRequest

func (c *Client) StepOutRequest(thread int)

StepOutRequest sends a 'stepOut' request.

func (*Client) TerminateRequest

func (c *Client) TerminateRequest()

TerminateRequest sends a 'terminate' request.

func (*Client) TerminateThreadsRequest

func (c *Client) TerminateThreadsRequest()

TerminateThreadsRequest sends a 'terminateThreads' request.

func (*Client) ThreadsRequest

func (c *Client) ThreadsRequest()

ThreadsRequest sends a 'threads' request.

func (*Client) UnknownEvent

func (c *Client) UnknownEvent()

UnknownEvent triggers dap.DecodeProtocolMessageFieldError.

func (*Client) UnknownRequest

func (c *Client) UnknownRequest()

UnknownRequest triggers dap.DecodeProtocolMessageFieldError.

func (*Client) VariablesRequest

func (c *Client) VariablesRequest(variablesReference int)

VariablesRequest sends a 'variables' request.

Directories

Path Synopsis
Binary gen generates service/dap/daptest/responses.go.
Binary gen generates service/dap/daptest/responses.go.

Jump to

Keyboard shortcuts

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