Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

tmuxtest.NewServerWithOptions

Go
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
tmuxtest
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/tmuxtest/harness.go
NewServerWithOptions ( ctx : context.Context , t : testing.TB , options : ServerOptions ) → tmux.Server
function [source]
function [source]
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.

0 declared, 0 inherited

Esc

Type to search.