MCPcopy Index your code
hub / github.com/devnullvoid/pvetui / MockSSHClient

Struct MockSSHClient

internal/plugins/command-runner/ssh_client.go:402–405  ·  view source on GitHub ↗

MockSSHClient is a mock implementation for testing

Source from the content-addressed store, hash-verified

400
401// MockSSHClient is a mock implementation for testing
402type MockSSHClient struct {
403 ExecuteFunc func(ctx context.Context, host, command string) (string, error)
404 ExecuteContainerFunc func(ctx context.Context, host string, containerID int, command string) (string, error)
405}
406
407// ExecuteCommand calls the mock function
408func (m *MockSSHClient) ExecuteCommand(ctx context.Context, host, command string) (string, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected