aboutsummaryrefslogtreecommitdiff
path: root/hotline/client_manager.go
diff options
context:
space:
mode:
Diffstat (limited to 'hotline/client_manager.go')
-rw-r--r--hotline/client_manager.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/hotline/client_manager.go b/hotline/client_manager.go
index 22d096d..60f0388 100644
--- a/hotline/client_manager.go
+++ b/hotline/client_manager.go
@@ -6,8 +6,6 @@ import (
"slices"
"sync"
"sync/atomic"
-
- "github.com/stretchr/testify/mock"
)
type ClientID [2]byte
@@ -19,29 +17,6 @@ type ClientManager interface {
Delete(id ClientID)
}
-type MockClientMgr struct {
- mock.Mock
-}
-
-func (m *MockClientMgr) List() []*ClientConn {
- args := m.Called()
-
- return args.Get(0).([]*ClientConn)
-}
-
-func (m *MockClientMgr) Get(id ClientID) *ClientConn {
- args := m.Called(id)
-
- return args.Get(0).(*ClientConn)
-}
-
-func (m *MockClientMgr) Add(cc *ClientConn) {
- m.Called(cc)
-}
-func (m *MockClientMgr) Delete(id ClientID) {
- m.Called(id)
-}
-
type MemClientMgr struct {
clients map[ClientID]*ClientConn