NewServer
NewServer starts an isolated tmux.Server with a session named "work". Startup uses ctx and the harness timeout, whichever ends first. It registers bounded cleanup with t; setup failures call testing.TB.Fatal. The context does not govern later server cleanup or daemon lifetime.
Source and package
- Qualified name
-
tmuxtest.New Server - Package
- tmuxtest
- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/tmuxtest/harness.go
- func NewServer( ctx context
.Context , t testing.TB, ) tmux.Server -
- Parameters
-
Guides#
Pages that discuss NewServer.
- Guides
- Topics