// Code generated by mockery v1.1.0. DO NOT EDIT.

package registry

import mock "github.com/stretchr/testify/mock"

// MockRegistry is an autogenerated mock type for the Registry type
type MockRegistry struct {
	mock.Mock
}

// Get provides a mock function with given fields: factoryName
func (_m *MockRegistry) Get(factoryName string) (interface{}, error) {
	ret := _m.Called(factoryName)

	var r0 interface{}
	if rf, ok := ret.Get(0).(func(string) interface{}); ok {
		r0 = rf(factoryName)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(interface{})
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(factoryName)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Register provides a mock function with given fields: factoryName, factory
func (_m *MockRegistry) Register(factoryName string, factory interface{}) error {
	ret := _m.Called(factoryName, factory)

	var r0 error
	if rf, ok := ret.Get(0).(func(string, interface{}) error); ok {
		r0 = rf(factoryName, factory)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}
