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

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