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