MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / CommandContext

Method CommandContext

internal/ssh/client_test.go:19–26  ·  view source on GitHub ↗
(ctx context.Context, name string, args ...string)

Source from the content-addressed store, hash-verified

17}
18
19func (m *mockExecutor) CommandContext(ctx context.Context, name string, args ...string) *exec.Cmd {
20 m.lastName = name
21
22 m.lastArgs = append([]string(nil), args...)
23 m.called++
24
25 return exec.CommandContext(ctx, "true")
26}
27
28func TestSSHClient_WithExecutor(t *testing.T) {
29 me := &mockExecutor{}

Callers

nothing calls this directly

Calls 1

CommandContextMethod · 0.65

Tested by

no test coverage detected