test(lifecycle): add unit tests for lifecycle behavior

This commit is contained in:
2026-01-24 20:28:30 +07:00
parent 211745dc26
commit 04c9ddbc13
4 changed files with 338 additions and 3 deletions
+4
View File
@@ -33,6 +33,10 @@ func (m *mockSession) Detail() *types.Detail {
type mockLifecycle struct{ user string }
func (ml *mockLifecycle) Channel() ssh.Channel {
return nil
}
func (ml *mockLifecycle) Connection() ssh.Conn { return nil }
func (ml *mockLifecycle) PortRegistry() port.Port { return nil }
func (ml *mockLifecycle) SetChannel(channel ssh.Channel) { _ = channel }