NewServerWithOptions
NewServerWithOptions prepares an isolated harness-owned tmux.Server from options. Initial startup uses ctx and the harness timeout, whichever ends first. The daemon starts only when ServerOptions.InitialSession is non-nil or a later tmux command starts it. It registers bounded cleanup with t; setup failures call testing.TB.Fatal. The context does not govern later cleanup or daemon lifetime.
Source and package
- Qualified name
-
tmuxtest.New Server With Options - Package
- tmuxtest
- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/tmuxtest/harness.go
- func NewServerWithOptions( ctx context
.Context , t testing.TB, options ServerOptions , ) tmux.Server -
- Parameters
-
tmux command#
The tmux commands behind NewServerWithOptions.
tmux C API#
The C declarations in tmux that implement these commands.