github.com/abayer/test-infra@v0.0.5/velodrome/transform/plugins/plugin_mock_test.go (about) 1 /* 2 Copyright 2017 The Kubernetes Authors. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 // Automatically generated by MockGen. DO NOT EDIT! 18 // Source: plugin.go 19 20 package plugins 21 22 import ( 23 gomock "github.com/golang/mock/gomock" 24 sql "k8s.io/test-infra/velodrome/sql" 25 ) 26 27 // Mock of Plugin interface 28 type MockPlugin struct { 29 ctrl *gomock.Controller 30 recorder *MockPluginRecorder 31 } 32 33 // Recorder for MockPlugin 34 type MockPluginRecorder struct { 35 mock *MockPlugin 36 } 37 38 func NewMockPlugin(ctrl *gomock.Controller) *MockPlugin { 39 mock := &MockPlugin{ctrl: ctrl} 40 mock.recorder = &MockPluginRecorder{mock} 41 return mock 42 } 43 44 func (_m *MockPlugin) EXPECT() *MockPluginRecorder { 45 return _m.recorder 46 } 47 48 func (_m *MockPlugin) ReceiveIssue(_param0 sql.Issue) []Point { 49 ret := _m.ctrl.Call(_m, "ReceiveIssue", _param0) 50 ret0, _ := ret[0].([]Point) 51 return ret0 52 } 53 54 func (_mr *MockPluginRecorder) ReceiveIssue(arg0 interface{}) *gomock.Call { 55 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReceiveIssue", arg0) 56 } 57 58 func (_m *MockPlugin) ReceiveComment(_param0 sql.Comment) []Point { 59 ret := _m.ctrl.Call(_m, "ReceiveComment", _param0) 60 ret0, _ := ret[0].([]Point) 61 return ret0 62 } 63 64 func (_mr *MockPluginRecorder) ReceiveComment(arg0 interface{}) *gomock.Call { 65 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReceiveComment", arg0) 66 } 67 68 func (_m *MockPlugin) ReceiveIssueEvent(_param0 sql.IssueEvent) []Point { 69 ret := _m.ctrl.Call(_m, "ReceiveIssueEvent", _param0) 70 ret0, _ := ret[0].([]Point) 71 return ret0 72 } 73 74 func (_mr *MockPluginRecorder) ReceiveIssueEvent(arg0 interface{}) *gomock.Call { 75 return _mr.mock.ctrl.RecordCall(_mr.mock, "ReceiveIssueEvent", arg0) 76 }