On this page
tmuxtest.NewSession
- Module
- tmuxtest
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/tmuxtest/resources.go
- NewSession ( ctx : context.Context , t : testing.TB , server : tmux.Server , request : tmux.NewSessionRequest ) tmux.Session
-
NewSession creates a test-owned
tmux.Sessionand registers cleanup against its stable ID. An emptytmux.NewSessionRequest.Namereceives a collision-checked temporary name. The request and referenced values are copied before tmux is called, and setup failures calltesting.TB.Fatal. Cleanup belongs to t rather than ctx and continues to target the session if it is renamed.
0 declared, 0 inherited