func (_m *TagReaderWriter) FindByName(name string, nocase bool) (*models.Tag, error) {
	ret := _m.Called(name, nocase)

	var r0 *models.Tag
	if rf, ok := ret.Get(0).(func(string, bool) *models.Tag); ok {
		r0 = rf(name, nocase)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*models.Tag)
		}
	}

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

	return r0, r1
}
// FindByName provides a mock function with given fields: name, nocase
FindByName provides a mock function with given fields: name, nocase
// FindByName provides a mock function with given fields : name nocase
func (_m *TagReaderWriter) FindByName(name string, nocase bool) (*models.Tag, error) {
	ret := _m.Called(name, nocase)
	var r0 *models.Tag
	if rf, ok := ret.Get(0).(func(string, bool) *models.Tag); ok {
		r0 = rf(name, nocase)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*models.Tag)
		}
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(string, bool) error); ok {
		r1 = rf(name, nocase)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func ( _m * TagReaderWriter ) FindByName ( name string , nocase bool ) ( * models . Tag , error ) { ret := _m . Called ( name , nocase ) var r0 * models . Tag if rf , ok := ret . Get ( 0 ) . ( func ( string , bool ) * models . Tag ) ; ok { r0 = rf ( name , nocase ) } else { if ret . Get ( 0 ) != nil { r0 = ret . Get ( 0 ) . ( * models . Tag ) } } var r1 error if rf , ok := ret . Get ( 1 ) . ( func ( string , bool ) error ) ; ok { r1 = rf ( name , nocase ) } else { r1 = ret . Error ( 1 ) } return r0 , r1 }
FindByName provides a mock function with given fields: name, nocase
FindByName provides a mock function with given fields : name nocase