github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/fvm/environment/mock/account_local_id_generator.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	common "github.com/onflow/cadence/runtime/common"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  )
    10  
    11  // AccountLocalIDGenerator is an autogenerated mock type for the AccountLocalIDGenerator type
    12  type AccountLocalIDGenerator struct {
    13  	mock.Mock
    14  }
    15  
    16  // GenerateAccountID provides a mock function with given fields: address
    17  func (_m *AccountLocalIDGenerator) GenerateAccountID(address common.Address) (uint64, error) {
    18  	ret := _m.Called(address)
    19  
    20  	var r0 uint64
    21  	var r1 error
    22  	if rf, ok := ret.Get(0).(func(common.Address) (uint64, error)); ok {
    23  		return rf(address)
    24  	}
    25  	if rf, ok := ret.Get(0).(func(common.Address) uint64); ok {
    26  		r0 = rf(address)
    27  	} else {
    28  		r0 = ret.Get(0).(uint64)
    29  	}
    30  
    31  	if rf, ok := ret.Get(1).(func(common.Address) error); ok {
    32  		r1 = rf(address)
    33  	} else {
    34  		r1 = ret.Error(1)
    35  	}
    36  
    37  	return r0, r1
    38  }
    39  
    40  type mockConstructorTestingTNewAccountLocalIDGenerator interface {
    41  	mock.TestingT
    42  	Cleanup(func())
    43  }
    44  
    45  // NewAccountLocalIDGenerator creates a new instance of AccountLocalIDGenerator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    46  func NewAccountLocalIDGenerator(t mockConstructorTestingTNewAccountLocalIDGenerator) *AccountLocalIDGenerator {
    47  	mock := &AccountLocalIDGenerator{}
    48  	mock.Mock.Test(t)
    49  
    50  	t.Cleanup(func() { mock.AssertExpectations(t) })
    51  
    52  	return mock
    53  }