github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/engine/execution/computation/query/mock/entropy_provider_per_block.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 environment "github.com/onflow/flow-go/fvm/environment" 7 flow "github.com/onflow/flow-go/model/flow" 8 9 mock "github.com/stretchr/testify/mock" 10 ) 11 12 // EntropyProviderPerBlock is an autogenerated mock type for the EntropyProviderPerBlock type 13 type EntropyProviderPerBlock struct { 14 mock.Mock 15 } 16 17 // AtBlockID provides a mock function with given fields: blockID 18 func (_m *EntropyProviderPerBlock) AtBlockID(blockID flow.Identifier) environment.EntropyProvider { 19 ret := _m.Called(blockID) 20 21 var r0 environment.EntropyProvider 22 if rf, ok := ret.Get(0).(func(flow.Identifier) environment.EntropyProvider); ok { 23 r0 = rf(blockID) 24 } else { 25 if ret.Get(0) != nil { 26 r0 = ret.Get(0).(environment.EntropyProvider) 27 } 28 } 29 30 return r0 31 } 32 33 type mockConstructorTestingTNewEntropyProviderPerBlock interface { 34 mock.TestingT 35 Cleanup(func()) 36 } 37 38 // NewEntropyProviderPerBlock creates a new instance of EntropyProviderPerBlock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 39 func NewEntropyProviderPerBlock(t mockConstructorTestingTNewEntropyProviderPerBlock) *EntropyProviderPerBlock { 40 mock := &EntropyProviderPerBlock{} 41 mock.Mock.Test(t) 42 43 t.Cleanup(func() { mock.AssertExpectations(t) }) 44 45 return mock 46 }