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
+5
View File
@@ -100,6 +100,11 @@ type MockLifecycle struct {
mock.Mock
}
func (m *MockLifecycle) Channel() ssh.Channel {
args := m.Called()
return args.Get(0).(ssh.Channel)
}
func (m *MockLifecycle) Connection() ssh.Conn {
args := m.Called()
return args.Get(0).(ssh.Conn)