github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/state/protocol/events/mock/views.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 events "github.com/onflow/flow-go/state/protocol/events" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // Views is an autogenerated mock type for the Views type 11 type Views struct { 12 mock.Mock 13 } 14 15 // OnView provides a mock function with given fields: view, callback 16 func (_m *Views) OnView(view uint64, callback events.OnViewCallback) { 17 _m.Called(view, callback) 18 } 19 20 type mockConstructorTestingTNewViews interface { 21 mock.TestingT 22 Cleanup(func()) 23 } 24 25 // NewViews creates a new instance of Views. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 26 func NewViews(t mockConstructorTestingTNewViews) *Views { 27 mock := &Views{} 28 mock.Mock.Test(t) 29 30 t.Cleanup(func() { mock.AssertExpectations(t) }) 31 32 return mock 33 }