testssh

package
v0.149.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package testssh supplies a deterministic subprocess fixture for socket tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forward

type Forward struct {
	Host   string   `json:"host"`
	PID    int      `json:"pid"`
	Args   []string `json:"args"`
	Socket string   `json:"socket"`
	// contains filtered or unexported fields
}

func (*Forward) Drop

func (f *Forward) Drop()

func (*Forward) StartListening

func (f *Forward) StartListening() error

StartListening releases the optional bind-before-listen fixture barrier.

type Harness

type Harness struct {
	Root    string
	SSHPath string
	Started chan *Forward
	// contains filtered or unexported fields
}

func New

func New(t *testing.T) *Harness

func (*Harness) Host

func (h *Harness) Host(t *testing.T, name string, m sshcontrol.Metadata)

func (*Harness) Offline

func (h *Harness) Offline(t *testing.T, name string, offline bool)

Jump to

Keyboard shortcuts

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