NewWindow
NewWindow creates a test-owned tmux.Window and registers cleanup against its stable ID. A nil tmux.NewWindowRequest.Name receives a collision-checked temporary name; an empty non-nil name remains explicit. The request and referenced values are copied before tmux is called, and setup failures call testing.TB.Fatal. Cleanup belongs to t rather than ctx and follows the window if it is moved.
Source and package
- Qualified name
-
tmuxtest.New Window - Package
- tmuxtest
- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/tmuxtest/resources.go
- func NewWindow( ctx context
.Context , t testing.TB, session tmux.Session , request tmux.New , ) tmuxWindow Request .Window -
- Parameters
-