github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/network/mocknetwork/disallow_list_notification_consumer.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mocknetwork 4 5 import ( 6 network "github.com/onflow/flow-go/network" 7 mock "github.com/stretchr/testify/mock" 8 ) 9 10 // DisallowListNotificationConsumer is an autogenerated mock type for the DisallowListNotificationConsumer type 11 type DisallowListNotificationConsumer struct { 12 mock.Mock 13 } 14 15 // OnAllowListNotification provides a mock function with given fields: _a0 16 func (_m *DisallowListNotificationConsumer) OnAllowListNotification(_a0 *network.AllowListingUpdate) { 17 _m.Called(_a0) 18 } 19 20 // OnDisallowListNotification provides a mock function with given fields: _a0 21 func (_m *DisallowListNotificationConsumer) OnDisallowListNotification(_a0 *network.DisallowListingUpdate) { 22 _m.Called(_a0) 23 } 24 25 type mockConstructorTestingTNewDisallowListNotificationConsumer interface { 26 mock.TestingT 27 Cleanup(func()) 28 } 29 30 // NewDisallowListNotificationConsumer creates a new instance of DisallowListNotificationConsumer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 31 func NewDisallowListNotificationConsumer(t mockConstructorTestingTNewDisallowListNotificationConsumer) *DisallowListNotificationConsumer { 32 mock := &DisallowListNotificationConsumer{} 33 mock.Mock.Test(t) 34 35 t.Cleanup(func() { mock.AssertExpectations(t) }) 36 37 return mock 38 }