On this page
tmuxtest.NewWindow
- Module
- tmuxtest
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/tmuxtest/resources.go
- NewWindow ( ctx : context.Context , t : testing.TB , session : tmux.Session , request : tmux.NewWindowRequest ) tmux.Window
-
NewWindow creates a test-owned
tmux.Windowand registers cleanup against its stable ID. A niltmux.NewWindowRequest.Namereceives 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 calltesting.TB.Fatal. Cleanup belongs to t rather than ctx and follows the window if it is moved.
0 declared, 0 inherited