go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/milo/internal/git/client.mock.go (about) 1 // Copyright 2018 The LUCI Authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by MockGen. DO NOT EDIT. 16 // Source: client.go 17 18 // Package git is a generated GoMock package. 19 package git 20 21 import ( 22 context "context" 23 gomock "github.com/golang/mock/gomock" 24 git "go.chromium.org/luci/common/proto/git" 25 reflect "reflect" 26 ) 27 28 // MockClient is a mock of Client interface. 29 type MockClient struct { 30 ctrl *gomock.Controller 31 recorder *MockClientMockRecorder 32 } 33 34 // MockClientMockRecorder is the mock recorder for MockClient. 35 type MockClientMockRecorder struct { 36 mock *MockClient 37 } 38 39 // NewMockClient creates a new mock instance. 40 func NewMockClient(ctrl *gomock.Controller) *MockClient { 41 mock := &MockClient{ctrl: ctrl} 42 mock.recorder = &MockClientMockRecorder{mock} 43 return mock 44 } 45 46 // EXPECT returns an object that allows the caller to indicate expected use. 47 func (m *MockClient) EXPECT() *MockClientMockRecorder { 48 return m.recorder 49 } 50 51 // Log mocks base method. 52 func (m *MockClient) Log(c context.Context, host, project, commitish string, inputOptions *LogOptions) ([]*git.Commit, error) { 53 m.ctrl.T.Helper() 54 ret := m.ctrl.Call(m, "Log", c, host, project, commitish, inputOptions) 55 ret0, _ := ret[0].([]*git.Commit) 56 ret1, _ := ret[1].(error) 57 return ret0, ret1 58 } 59 60 // Log indicates an expected call of Log. 61 func (mr *MockClientMockRecorder) Log(c, host, project, commitish, inputOptions interface{}) *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Log", reflect.TypeOf((*MockClient)(nil).Log), c, host, project, commitish, inputOptions) 64 } 65 66 // CombinedLogs mocks base method. 67 func (m *MockClient) CombinedLogs(c context.Context, host, project, excludeRef string, refs []string, limit int) ([]*git.Commit, error) { 68 m.ctrl.T.Helper() 69 ret := m.ctrl.Call(m, "CombinedLogs", c, host, project, excludeRef, refs, limit) 70 ret0, _ := ret[0].([]*git.Commit) 71 ret1, _ := ret[1].(error) 72 return ret0, ret1 73 } 74 75 // CombinedLogs indicates an expected call of CombinedLogs. 76 func (mr *MockClientMockRecorder) CombinedLogs(c, host, project, excludeRef, refs, limit interface{}) *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CombinedLogs", reflect.TypeOf((*MockClient)(nil).CombinedLogs), c, host, project, excludeRef, refs, limit) 79 } 80 81 // CLEmail mocks base method. 82 func (m *MockClient) CLEmail(c context.Context, host string, changeNumber int64) (string, error) { 83 m.ctrl.T.Helper() 84 ret := m.ctrl.Call(m, "CLEmail", c, host, changeNumber) 85 ret0, _ := ret[0].(string) 86 ret1, _ := ret[1].(error) 87 return ret0, ret1 88 } 89 90 // CLEmail indicates an expected call of CLEmail. 91 func (mr *MockClientMockRecorder) CLEmail(c, host, changeNumber interface{}) *gomock.Call { 92 mr.mock.ctrl.T.Helper() 93 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CLEmail", reflect.TypeOf((*MockClient)(nil).CLEmail), c, host, changeNumber) 94 }