testkit

package
v0.2026211.549 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package testkit provides disposable live protocol fixtures shared by SDK consumers. The fixtures are test infrastructure, not production fallbacks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHProcessServer

type SSHProcessServer struct {
	Address      string
	Port         int64
	IdentityFile string
	Home         string
}

SSHProcessServer is a real SSH server whose accepted exec session is wired byte-for-byte to a child process. It lets consumers prove gRPC-over-SSH with the system OpenSSH client without relying on a machine-level sshd fixture.

func StartSSHProcessServer

func StartSSHProcessServer(t TestingT, process func(string) *exec.Cmd) *SSHProcessServer

type TestingT

type TestingT interface {
	Helper()
	TempDir() string
	Cleanup(func())
	Fatalf(string, ...any)
}

Jump to

Keyboard shortcuts

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