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