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