libtmux Reference MCP Search
On this page

tmuxtest.NewServer

View as Markdown

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

0 declared, 0 inherited

Esc

Type to search.