github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/backend_scripts_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 // BackendScriptsMetrics is an autogenerated mock type for the BackendScriptsMetrics type 12 type BackendScriptsMetrics struct { 13 mock.Mock 14 } 15 16 // ScriptExecuted provides a mock function with given fields: dur, size 17 func (_m *BackendScriptsMetrics) ScriptExecuted(dur time.Duration, size int) { 18 _m.Called(dur, size) 19 } 20 21 // ScriptExecutionErrorLocal provides a mock function with given fields: 22 func (_m *BackendScriptsMetrics) ScriptExecutionErrorLocal() { 23 _m.Called() 24 } 25 26 // ScriptExecutionErrorMatch provides a mock function with given fields: 27 func (_m *BackendScriptsMetrics) ScriptExecutionErrorMatch() { 28 _m.Called() 29 } 30 31 // ScriptExecutionErrorMismatch provides a mock function with given fields: 32 func (_m *BackendScriptsMetrics) ScriptExecutionErrorMismatch() { 33 _m.Called() 34 } 35 36 // ScriptExecutionErrorOnExecutionNode provides a mock function with given fields: 37 func (_m *BackendScriptsMetrics) ScriptExecutionErrorOnExecutionNode() { 38 _m.Called() 39 } 40 41 // ScriptExecutionNotIndexed provides a mock function with given fields: 42 func (_m *BackendScriptsMetrics) ScriptExecutionNotIndexed() { 43 _m.Called() 44 } 45 46 // ScriptExecutionResultMatch provides a mock function with given fields: 47 func (_m *BackendScriptsMetrics) ScriptExecutionResultMatch() { 48 _m.Called() 49 } 50 51 // ScriptExecutionResultMismatch provides a mock function with given fields: 52 func (_m *BackendScriptsMetrics) ScriptExecutionResultMismatch() { 53 _m.Called() 54 } 55 56 type mockConstructorTestingTNewBackendScriptsMetrics interface { 57 mock.TestingT 58 Cleanup(func()) 59 } 60 61 // NewBackendScriptsMetrics creates a new instance of BackendScriptsMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 62 func NewBackendScriptsMetrics(t mockConstructorTestingTNewBackendScriptsMetrics) *BackendScriptsMetrics { 63 mock := &BackendScriptsMetrics{} 64 mock.Mock.Test(t) 65 66 t.Cleanup(func() { mock.AssertExpectations(t) }) 67 68 return mock 69 }