github.com/web-platform-tests/wpt.fyi@v0.0.0-20240530210107-70cf978996f1/api/query/cache/monitor/monitor_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: api/query/cache/monitor/monitor.go 3 4 // Package monitor is a generated GoMock package. 5 package monitor 6 7 import ( 8 gomock "github.com/golang/mock/gomock" 9 reflect "reflect" 10 time "time" 11 ) 12 13 // MockRuntime is a mock of Runtime interface 14 type MockRuntime struct { 15 ctrl *gomock.Controller 16 recorder *MockRuntimeMockRecorder 17 } 18 19 // MockRuntimeMockRecorder is the mock recorder for MockRuntime 20 type MockRuntimeMockRecorder struct { 21 mock *MockRuntime 22 } 23 24 // NewMockRuntime creates a new mock instance 25 func NewMockRuntime(ctrl *gomock.Controller) *MockRuntime { 26 mock := &MockRuntime{ctrl: ctrl} 27 mock.recorder = &MockRuntimeMockRecorder{mock} 28 return mock 29 } 30 31 // EXPECT returns an object that allows the caller to indicate expected use 32 func (m *MockRuntime) EXPECT() *MockRuntimeMockRecorder { 33 return m.recorder 34 } 35 36 // GetHeapBytes mocks base method 37 func (m *MockRuntime) GetHeapBytes() uint64 { 38 ret := m.ctrl.Call(m, "GetHeapBytes") 39 ret0, _ := ret[0].(uint64) 40 return ret0 41 } 42 43 // GetHeapBytes indicates an expected call of GetHeapBytes 44 func (mr *MockRuntimeMockRecorder) GetHeapBytes() *gomock.Call { 45 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHeapBytes", reflect.TypeOf((*MockRuntime)(nil).GetHeapBytes)) 46 } 47 48 // MockMonitor is a mock of Monitor interface 49 type MockMonitor struct { 50 ctrl *gomock.Controller 51 recorder *MockMonitorMockRecorder 52 } 53 54 // MockMonitorMockRecorder is the mock recorder for MockMonitor 55 type MockMonitorMockRecorder struct { 56 mock *MockMonitor 57 } 58 59 // NewMockMonitor creates a new mock instance 60 func NewMockMonitor(ctrl *gomock.Controller) *MockMonitor { 61 mock := &MockMonitor{ctrl: ctrl} 62 mock.recorder = &MockMonitorMockRecorder{mock} 63 return mock 64 } 65 66 // EXPECT returns an object that allows the caller to indicate expected use 67 func (m *MockMonitor) EXPECT() *MockMonitorMockRecorder { 68 return m.recorder 69 } 70 71 // Start mocks base method 72 func (m *MockMonitor) Start() error { 73 ret := m.ctrl.Call(m, "Start") 74 ret0, _ := ret[0].(error) 75 return ret0 76 } 77 78 // Start indicates an expected call of Start 79 func (mr *MockMonitorMockRecorder) Start() *gomock.Call { 80 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockMonitor)(nil).Start)) 81 } 82 83 // Stop mocks base method 84 func (m *MockMonitor) Stop() error { 85 ret := m.ctrl.Call(m, "Stop") 86 ret0, _ := ret[0].(error) 87 return ret0 88 } 89 90 // Stop indicates an expected call of Stop 91 func (mr *MockMonitorMockRecorder) Stop() *gomock.Call { 92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockMonitor)(nil).Stop)) 93 } 94 95 // SetInterval mocks base method 96 func (m *MockMonitor) SetInterval(arg0 time.Duration) error { 97 ret := m.ctrl.Call(m, "SetInterval", arg0) 98 ret0, _ := ret[0].(error) 99 return ret0 100 } 101 102 // SetInterval indicates an expected call of SetInterval 103 func (mr *MockMonitorMockRecorder) SetInterval(arg0 interface{}) *gomock.Call { 104 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetInterval", reflect.TypeOf((*MockMonitor)(nil).SetInterval), arg0) 105 } 106 107 // SetMaxHeapBytes mocks base method 108 func (m *MockMonitor) SetMaxHeapBytes(arg0 uint64) error { 109 ret := m.ctrl.Call(m, "SetMaxHeapBytes", arg0) 110 ret0, _ := ret[0].(error) 111 return ret0 112 } 113 114 // SetMaxHeapBytes indicates an expected call of SetMaxHeapBytes 115 func (mr *MockMonitorMockRecorder) SetMaxHeapBytes(arg0 interface{}) *gomock.Call { 116 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMaxHeapBytes", reflect.TypeOf((*MockMonitor)(nil).SetMaxHeapBytes), arg0) 117 }