tmuxtest.NewServer
Go
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- tmuxtest
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/tmuxtest/harness.go
- NewServer ( ctx : context.Context , t : testing.TB ) tmux.Server
-
NewServer starts an isolated
tmux.Serverwith a session named "work". Startup uses ctx and the harness timeout, whichever ends first. It registers bounded cleanup with t; setup failures calltesting.TB.Fatal. The context does not govern later server cleanup or daemon lifetime.Discussed in Testing with libtmux
0 declared, 0 inherited