Files
kandev/apps/backend/internal/agentctl/server/process/testing_helpers.go
T
Carlos Florêncio 3a95a43990 fix: vscode (#279)
2026-02-24 23:01:41 +00:00

13 lines
354 B
Go

package process
// SetVscodeForTest injects a VscodeManager with the given status and port.
// Intended for use in tests where starting a real code-server is not feasible.
func (m *Manager) SetVscodeForTest(status VscodeStatus, port int) {
m.vscodeMu.Lock()
defer m.vscodeMu.Unlock()
m.vscode = &VscodeManager{
status: status,
port: port,
}
}