github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/fvm/environment/mock/metrics_reporter.go (about)

     1  // Code generated by mockery v2.21.4. DO NOT EDIT.
     2  
     3  package mock
     4  
     5  import (
     6  	time "time"
     7  
     8  	mock "github.com/stretchr/testify/mock"
     9  )
    10  
    11  // MetricsReporter is an autogenerated mock type for the MetricsReporter type
    12  type MetricsReporter struct {
    13  	mock.Mock
    14  }
    15  
    16  // RuntimeSetNumberOfAccounts provides a mock function with given fields: count
    17  func (_m *MetricsReporter) RuntimeSetNumberOfAccounts(count uint64) {
    18  	_m.Called(count)
    19  }
    20  
    21  // RuntimeTransactionChecked provides a mock function with given fields: _a0
    22  func (_m *MetricsReporter) RuntimeTransactionChecked(_a0 time.Duration) {
    23  	_m.Called(_a0)
    24  }
    25  
    26  // RuntimeTransactionInterpreted provides a mock function with given fields: _a0
    27  func (_m *MetricsReporter) RuntimeTransactionInterpreted(_a0 time.Duration) {
    28  	_m.Called(_a0)
    29  }
    30  
    31  // RuntimeTransactionParsed provides a mock function with given fields: _a0
    32  func (_m *MetricsReporter) RuntimeTransactionParsed(_a0 time.Duration) {
    33  	_m.Called(_a0)
    34  }
    35  
    36  // RuntimeTransactionProgramsCacheHit provides a mock function with given fields:
    37  func (_m *MetricsReporter) RuntimeTransactionProgramsCacheHit() {
    38  	_m.Called()
    39  }
    40  
    41  // RuntimeTransactionProgramsCacheMiss provides a mock function with given fields:
    42  func (_m *MetricsReporter) RuntimeTransactionProgramsCacheMiss() {
    43  	_m.Called()
    44  }
    45  
    46  type mockConstructorTestingTNewMetricsReporter interface {
    47  	mock.TestingT
    48  	Cleanup(func())
    49  }
    50  
    51  // NewMetricsReporter creates a new instance of MetricsReporter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
    52  func NewMetricsReporter(t mockConstructorTestingTNewMetricsReporter) *MetricsReporter {
    53  	mock := &MetricsReporter{}
    54  	mock.Mock.Test(t)
    55  
    56  	t.Cleanup(func() { mock.AssertExpectations(t) })
    57  
    58  	return mock
    59  }