16 lines
334 B
Go
16 lines
334 B
Go
package mocks
|
|
|
|
import (
|
|
"alfred/cmd/ingester/app/service/interfaces"
|
|
"github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
type MockClientManager struct {
|
|
mock.Mock
|
|
}
|
|
|
|
func (m *MockClientManager) GetClientByType(clientName string) (interfaces.Client, error) {
|
|
args := m.Called(clientName)
|
|
return args.Get(0).(interfaces.Client), args.Error(1)
|
|
}
|