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