github.com/koko1123/flow-go-1@v0.29.6/module/mock/backend_scripts_metrics.go (about) 1 // Code generated by mockery v2.13.1. 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 type mockConstructorTestingTNewBackendScriptsMetrics interface { 22 mock.TestingT 23 Cleanup(func()) 24 } 25 26 // 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. 27 func NewBackendScriptsMetrics(t mockConstructorTestingTNewBackendScriptsMetrics) *BackendScriptsMetrics { 28 mock := &BackendScriptsMetrics{} 29 mock.Mock.Test(t) 30 31 t.Cleanup(func() { mock.AssertExpectations(t) }) 32 33 return mock 34 }