You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mock_allcoator.go
    path of file: ./repos/milvus/internal/allocator
    
    the code of the file until where you have to start completion: // Code generated by mockery v2.32.4. DO NOT EDIT.

package allocator

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

// MockAllocator is an autogenerated mock type for the Interface type
type MockAllocator struct {
	mo
    
func (_m *MockAllocator) AllocOne() (int64, error) {
	ret := _m.Called()

	var r0 int64
	var r1 error
	if rf, ok := ret.Get(0).(func() (int64, error)); ok {
		return rf()
	}
	if rf, ok := ret.Get(0).(func() int64); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(int64)
	}

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

	return r0, r1
}