github.com/koko1123/flow-go-1@v0.29.6/module/mock/cache_metrics.go (about)

     1  // Code generated by mockery v2.13.1. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import mock "github.com/stretchr/testify/mock"
     6  
     7  // CacheMetrics is an autogenerated mock type for the CacheMetrics type
     8  type CacheMetrics struct {
     9  	mock.Mock
    10  }
    11  
    12  // CacheEntries provides a mock function with given fields: resource, entries
    13  func (_m *CacheMetrics) CacheEntries(resource string, entries uint) {
    14  	_m.Called(resource, entries)
    15  }
    16  
    17  // CacheHit provides a mock function with given fields: resource
    18  func (_m *CacheMetrics) CacheHit(resource string) {
    19  	_m.Called(resource)
    20  }
    21  
    22  // CacheMiss provides a mock function with given fields: resource
    23  func (_m *CacheMetrics) CacheMiss(resource string) {
    24  	_m.Called(resource)
    25  }
    26  
    27  // CacheNotFound provides a mock function with given fields: resource
    28  func (_m *CacheMetrics) CacheNotFound(resource string) {
    29  	_m.Called(resource)
    30  }
    31  
    32  type mockConstructorTestingTNewCacheMetrics interface {
    33  	mock.TestingT
    34  	Cleanup(func())
    35  }
    36  
    37  // NewCacheMetrics creates a new instance of CacheMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    38  func NewCacheMetrics(t mockConstructorTestingTNewCacheMetrics) *CacheMetrics {
    39  	mock := &CacheMetrics{}
    40  	mock.Mock.Test(t)
    41  
    42  	t.Cleanup(func() { mock.AssertExpectations(t) })
    43  
    44  	return mock
    45  }